js/app.js
/**
 * Function called by DOM changes, updates all the charts 
 */
Function called by DOM changes, updates all the charts
Function called by DOM changes updates all the charts
function optionChanged() {
	var value = d3.select("#selDataset").property("value");
	if (samples != null) {
		var length = samples.length;
		var i;
		for (i = 0; i < length; i++)
			if (value == samples[i].id) {
				updateBarChart(samples[i]);
				updateBubbleChart(samples[i]);
				break;
			}
	}
	if (metadata != null) {
		var length = metadata.length;
		var i;
		for (i = 0; i < length; i++)
			if (value == metadata[i].id) {
				updateGauge(metadata[i]);
				updateSelectionTable(metadata[i]);
				break;
			}
	}
}
function optionChanged ( ) { var value = d3 . select ( "#selDataset" ) . property ( "value" ) ; if ( samples != null ) { var length = samples . length ; var i ; for ( i = 0 ; i < length ; i ++ ) if ( value == samples [ i ] . id ) { updateBarChart ( samples [ i ] ) ; updateBubbleChart ( samples [ i ] ) ; break ; } } if ( metadata != null ) { var length = metadata . length ; var i ; for ( i = 0 ; i < length ; i ++ ) if ( value == metadata [ i ] . id ) { updateGauge ( metadata [ i ] ) ; updateSelectionTable ( metadata [ i ] ) ; break ; } } }
Function called by DOM changes, updates all the charts
Function called by DOM changes updates all the charts
// select the body where the changed value is stored
 // if the samples array is not null, try to find the matching sample value
 // if the metadata array is not null, try to find the matching metadata value
