This project contains an implementation of heatmap chart, modelled after HTML5 canvas based heatmaps, which was missing a react implementation.
The Heatmap component in this project uses the same core algorithm to paint heatmap on HTML5 canvas with slight modifications to work with React lifecycle methods.
Following screenshot shows the default heatmap view with sample data. data.js conatins the sample data in [x, y, occurances] format.
Limitations:
- Heatmap underlying canvas is currently not responsive
Refer to component/app.js on basic usage.
TBD
- Update
src/config_dev.jswith your canvas dimensions. - Install
node_modulesdependencies usingyarnyarn install
- Launch the application locally using Webpack Development Server (WDS).
yarn start
- Alternatively, if in VSCode, launch the server using the
Launch Webpack Development Server (WDS)in VSCodeDebugview. - In order to distrubute the application (S3 for example):
yarn build- copy
build.js,style/*,image/*,index.htmlto S3 static website
ISC