0.1.0 • Published 2 years ago

react-heatmap-component v0.1.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

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}
        dataPoint={dataPoint}
        height={height}
        width={width}
    />

Develop

build

npm run build

dev
Source code is in the lib folder

npm run dev
0.1.0

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago