Canvas: Heatmap

Heatmap is a visual representation of data in the form of color gradients. The below example explains how to create a heatmap using I2Djs canvas.

Layer Creation:

Asset 1: Circle with a gradient fill. It will be an offline canvas instance, which will be used in rendering the heat map. Every data

Asset 2:

Once all our assets are ready, we draw a circular gradient canvas image for every data point to the invisible canvas.