// create a simpleheat object given an id or canvas referenceconst heat = new SimpleHeat(canvas);
Data
// set data of [[x, y, value], ...] formatheat.data(data);// set max data value (1 by default)heat.max(2.5);// add a data pointheat.add([10, 10, 5.3]);// clear dataheat.clear();
Appearance
// set point radius and blur radius (25 and 15 by default)heat.radius(30, 10);// set gradient colors as {<stop>: '<color>'}heat.gradient({0.4: 'blue', 0.65: 'lime', 1: 'red'});
Rendering
// draw the heatmap with optional minimum point opacity (0.05 by default)heat.draw(0.1);