Chart.js: HTML5 plugin based in JavaScript that charts images.
Chart.min.js
script in HTML head) Use <canvas>
element with id
and width
& height
dimension attributes to set bounds of chart-able area on pageJS variables and some Chart-specific keywords are used to define and adjust graphs, like (for bar graph in brown w/ 3 data points):
var barData = {
labels: ["Snickers", "3 Musketeers", "Reese's"],
datasets : [
{
fillColor : "#6e655c",
strokeColor : "#141413",
data : [11,6,20]
}
]
}
Can be styled by CSS, but this has limited/unintended effects on the displayed canvas element itself
Alt text or images can be incorporated for accesibility purposes
Defaults to Cartesean grid (1px x 1px)
several functions for rectangular constructions, with parameters of (x position, y position, width, height) `function rect() { var canvas = document.getElementById(‘canvas’); if (canvas.getContext) { var ctx = canvas.getContext(‘2d’);
ctx.fillRect(10, 10, 50, 50); } }`