ChartJS Line Chart

Multiple Line Chart

by karthick Chandran

HTML

<body>
    <canvas id="chartJSContainer" width="600" height="400"></canvas>
</body>

CSS

canvas { background-color : #eee;
}

JavaScript

var options = {
  type: 'line',
  data: {
    labels: ["Red", "Blue", "Yellow", "Green", "Purple", "Orange"],
    datasets: [
      
			{
				label: '# of Points',
				data: [236, 0],
        bacgroundcolor:'#00FFFFFF',
				borderWidth: 1
      
			}
		]
  },
  options: {
  	scales: {
    	yAxes: [{
        ticks: {
          min: 0,
          max: 300,
          stepSize: 100,
					reverse: false,
          beginAtZero: true
        }
      }]
    }
  }
}

var ctx = document.getElementById('chartJSContainer').getContext('2d');
new Chart(ctx, options);