function loadDataDrawGraph(btn, d, t, xLabel, yLabel) {
	btn.click(function() {
		detectDraw();
		let loaderLeft = $("#graph-sensorLeft-loader");
		let loaderRight = $("#graph-sensorRight-loader");
		loaderLeft.addClass("move");
		loaderRight.addClass("move");
		d3.csv(d, function(error, data) {
			if (error) throw error;
			let newData = []; // Get each row
			for (let key in data[initialRow]){
				if (key != "name"){
					newData.push({
						name: key.toString(),
						value: +data[initialRow][key]
					})
				}
			};
			loaderLeft.removeClass("move");
			loaderRight.removeClass("move");
			drawSVG(newData, xLabel, yLabel)
			titTextSensorL.text(t);
			titTextSensorR.text(t);
			detectSensorL();
		});
	});
}
/* 
	------------------------------------------------
	Name: loadDataDrawGraph
	Desc: Draw left-side sensor
	------------------------------------------------
*/
loadDataDrawGraph
Desc: Draw left-side sensor
loadDataDrawGraph Desc : Draw left - side sensor
function loadDataDrawGraph(btn, d, t, xLabel, yLabel) {
	btn.click(function() {
		detectDraw();
		let loaderLeft = $("#graph-sensorLeft-loader");
		let loaderRight = $("#graph-sensorRight-loader");
		loaderLeft.addClass("move");
		loaderRight.addClass("move");
		d3.csv(d, function(error, data) {
			if (error) throw error;
			let newData = []; 
			for (let key in data[initialRow]){
				if (key != "name"){
					newData.push({
						name: key.toString(),
						value: +data[initialRow][key]
					})
				}
			};
			loaderLeft.removeClass("move");
			loaderRight.removeClass("move");
			drawSVG(newData, xLabel, yLabel)
			titTextSensorL.text(t);
			titTextSensorR.text(t);
			detectSensorL();
		});
	});
}
function loadDataDrawGraph ( btn , d , t , xLabel , yLabel ) { btn . click ( function ( ) { detectDraw ( ) ; let loaderLeft = $ ( "#graph-sensorLeft-loader" ) ; let loaderRight = $ ( "#graph-sensorRight-loader" ) ; loaderLeft . addClass ( "move" ) ; loaderRight . addClass ( "move" ) ; d3 . csv ( d , function ( error , data ) { if ( error ) throw error ; let newData = [ ] ; for ( let key in data [ initialRow ] ) { if ( key != "name" ) { newData . push ( { name : key . toString ( ) , value : + data [ initialRow ] [ key ] } ) } } ; loaderLeft . removeClass ( "move" ) ; loaderRight . removeClass ( "move" ) ; drawSVG ( newData , xLabel , yLabel ) titTextSensorL . text ( t ) ; titTextSensorR . text ( t ) ; detectSensorL ( ) ; } ) ; } ) ; }
Name: loadDataDrawGraph
Desc: Draw left-side sensor
Name : loadDataDrawGraph Desc : Draw left - side sensor
// Get each row