Skip to content

RedDevi1s/react-heatmap-component

Repository files navigation

React Heatmap Component

A react component version of heatmap.js

Usage

The component only needs four parameters, data point, image url, image width and height, and an optional config Object. You can refer to heatmap.js documentation for more details

import Heatmap  from 'react-heatmap-component'
    const dataPoints = {
        max: 100,
        min: 0,
        data: [{
            x: 50,
            y: 20,
            value: 64
        }, {
            x: 23,
            y: 11,
            value: 55
        }]
    }
    <Heatmap
        imgUrl={imgUrl}
        dataPoints={dataPoints}
        height={height}
        width={width}
    />

Develop

build

npm run build

dev
Source code is in the lib folder

npm run dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published