Skip to content

SunitRaut/Heatmap-Visualization-JS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heatmap-Visualization-JS

GitHub release license DOI

A Heatmap Visualization Generation library for JavaScript

How to use this library

Installation

Embed within html using <script> tag

<script src= "https://SunitRaut.github.io/Heatmap-Visualization-JS/heatmap.js" > </script>

For faster download, you may embed the minified version instead

<script src= "https://SunitRaut.github.io/Heatmap-Visualization-JS/heatmap-minified.js" > </script>

Create HeatMap Object

var p = new HeatMap();

Define Region for HeatMap

var loc = [[19.0454,72.8891],[19.045,72.8893],[19.0459,72.8894],[19.0452,72.8897],[19.0458,72.8898],[19.0458,72.8903],[19.0452,72.8903]];

var region = p.defineRegion(loc);

Create HeatMap by adding data to region

var data = [12,43,64,53,34,23,38];

var heatmap = p.createHeatMap(data);

Check Demo here: https://SunitRaut.github.io/Heatmap-Visualization-JS/example

If you Like my Work, Buy me a Coffee!

If this library makes your life easier and has helped bring your project to reality, I would appreciate a small token of gratitude. Click on the below icon to contribute.

Buy Me A Coffee