reading-notes

Reading Notes for Codefellows!


Project maintained by AlanYHung Hosted on GitHub Pages — Theme by mattgraham

Code 201

Reading 12

(All My Notes are attributed/sourced from the Resources directly preceding them.)

Article on Chart.js

==========================================================================================================================
Sample Line Graph Code  |  https://www.webdesignerdepot.com/2013/11/easily-create-stunning-animated-charts-with-chart-js/
==========================================================================================================================
<canvas id="buyers" width="600" height="400"></canvas>

<script>
    var buyers = document.getElementById('buyers').getContext('2d');
    new Chart(buyers).Line(buyerData);
</script>

var buyerData = {
	labels : ["January","February","March","April","May","June"],
	datasets : [
		{
			fillColor : "rgba(172,194,132,0.4)",
			strokeColor : "#ACC26D",
			pointColor : "#fff",
			pointStrokeColor : "#9DB86D",
			data : [203,156,99,251,305,247]
		}
	]
}

Canvas API

<– Back