react-heatmap-component
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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

Package Sidebar

Install

npm i react-heatmap-component

Weekly Downloads

4

Version

0.1.0

License

Apache-2.0

Unpacked Size

38 kB

Total Files

5

Last publish

Collaborators

  • reddevi1s