{"size": 2999, "ext": "js", "max_stars_repo_path": "js/chart_line.js", "max_stars_repo_name": "chokena/sk_email", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "js/chart_line.js", "max_issues_repo_name": "chokena/sk_email", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "js/chart_line.js", "max_forks_repo_name": "chokena/sk_email", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.8534482759, "max_line_length": 76, "alphanum_fraction": 0.5191730577}
// JavaScript Document\
window.onload = function () {

var options = {
	animationEnabled: true,
	theme: "light2",
	title:{
		text: "LOG DATA OUTPUT"
	},
	axisX:{
		valueFormatString: "DD MMM"
	},
	axisY: {
		title: "DATA",
		suffix: "",
		minimum: 0
	},
	toolTip:{
		shared:true
	},  
	legend:{
		cursor:"pointer",
		verticalAlign: "bottom",
		horizontalAlign: "left",
		dockInsidePlotArea: true,
		itemclick: toogleDataSeries
	},
	data: [{
		type: "line",
		showInLegend: true,
		name: "Projected Sales",
		markerType: "square",
		xValueFormatString: "DD MMM, YYYY",
		color: "#F080ff",
		yValueFormatString: "#",
		dataPoints: [
			{ x: new Date(2017, 10, 1), y: 63 },
			{ x: new Date(2017, 10, 2), y: 69 },
			{ x: new Date(2017, 10, 3), y: 65 },
			{ x: new Date(2017, 10, 4), y: 70 },
			{ x: new Date(2017, 10, 5), y: 71 },
			{ x: new Date(2017, 10, 6), y: 65 },
			{ x: new Date(2017, 10, 7), y: 73 },
			{ x: new Date(2017, 10, 8), y: 96 },
			{ x: new Date(2017, 10, 9), y: 84 },
			{ x: new Date(2017, 10, 10), y: 85 },
			{ x: new Date(2017, 10, 11), y: 86 },
			{ x: new Date(2017, 10, 12), y: 94 },
			{ x: new Date(2017, 10, 13), y: 97 },
			{ x: new Date(2017, 10, 14), y: 86 },
			{ x: new Date(2017, 10, 15), y: 89 }
		]
	},
	{
		type: "line",
		showInLegend: true,
		name: "Actual Sales",
        color: "#F08000",
		lineDashType: "dash",
		yValueFormatString: "#",
		dataPoints: [
			{ x: new Date(2017, 10, 1), y: 60 },
			{ x: new Date(2017, 10, 2), y: 57 },
			{ x: new Date(2017, 10, 3), y: 51 },
			{ x: new Date(2017, 10, 4), y: 56 },
			{ x: new Date(2017, 10, 5), y: 54 },
			{ x: new Date(2017, 10, 6), y: 55 },
			{ x: new Date(2017, 10, 7), y: 54 },
			{ x: new Date(2017, 10, 8), y: 69 },
			{ x: new Date(2017, 10, 9), y: 65 },
			{ x: new Date(2017, 10, 10), y: 66 },
			{ x: new Date(2017, 10, 11), y: 63 },
			{ x: new Date(2017, 10, 12), y: 67 },
			{ x: new Date(2017, 10, 13), y: 66 },
			{ x: new Date(2017, 10, 14), y: 56 },
			{ x: new Date(2017, 10, 15), y: 64 }
		]
	},
	{
		type: "line",
		showInLegend: true,
		name: "TTTT",
        color: "#F080aa",    
		yValueFormatString: "#",
		dataPoints: [
			{ x: new Date(2017, 10, 1), y: 10 },
			{ x: new Date(2017, 10, 2), y: 5 },
			{ x: new Date(2017, 10, 3), y: 5 },
			{ x: new Date(2017, 10, 4), y: 5 },
			{ x: new Date(2017, 10, 5), y: 5 },
			{ x: new Date(2017, 10, 6), y: 5 },
			{ x: new Date(2017, 10, 7), y: 5 },
			{ x: new Date(2017, 10, 8), y: 6 },
			{ x: new Date(2017, 10, 9), y: 6 },
			{ x: new Date(2017, 10, 10), y: 6 },
			{ x: new Date(2017, 10, 11), y: 3 },
			{ x: new Date(2017, 10, 12), y: 7 },
			{ x: new Date(2017, 10, 13), y: 6 },
			{ x: new Date(2017, 10, 14), y: 6 },
			{ x: new Date(2017, 10, 15), y: 4 }
		]
	}]
};
$("#chartContainer").CanvasJSChart(options);

function toogleDataSeries(e){
	if (typeof(e.dataSeries.visible) === "undefined" || e.dataSeries.visible) {
		e.dataSeries.visible = false;
	} else{
		e.dataSeries.visible = true;
	}
	e.chart.render();
}

}
