Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 1.2 KB

README.md

File metadata and controls

55 lines (39 loc) · 1.2 KB

@zakodium/react-heatmap

Display beautiful SVG heat maps.

Zakodium logo

Maintained by Zakodium

NPM version npm download

Installation

$ npm i @zakodium/react-heatmap

Live examples

https://zakodium-oss.github.io/react-heatmap

Usage

import { Heatmap } from '@zakodium/react-heatmap';

function App() {
  return (
    <Heatmap
      dimensions={{ height: 600 }} // Do not specify width and let it be responsive
      data={[
        [-20, -15, -10],
        [-5, 0, 5],
        [10, 15, 20],
      ]}
      xLabels={['Column 1', 'Column 2', 'Column 3']}
    />
  );
}

License

MIT