and_heatmap
v2.0.5
Published
Dynamic JavaScript Heatmaps for the Web (based on heatmap.js)
Maintainers
Readme
and_heatmap
Dynamic Heatmaps for the Web.
Based on heatmap.js v2.0.5 by Patrick Wied, published under the MIT license.
Install
npm install and_heatmapUsage
// CommonJS
const h337 = require('and_heatmap');
// ESM (via bundler)
import h337 from 'and_heatmap';
const heatmap = h337.create({
container: document.getElementById('heatmapContainer'),
radius: 10,
maxOpacity: 0.5,
});
heatmap.addData({ x: 100, y: 100, value: 10 });The browser global variable is h337.
Files
build/heatmap.js— full buildbuild/heatmap.min.js— minified build
Plugins
Optional plugins for Leaflet and Google Maps are included under plugins/. They currently reference the original heatmap.js package name; use them as reference or copy into your project.
License
MIT — see LICENSE. Original copyright (c) Patrick Wied.
