2.0.0 • Published 4 years ago

@zakodium/react-heatmap v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

@zakodium/react-heatmap

NPM version npm download

Display beautiful SVG heat maps.

Installation

$ npm i @zakodium/react-heatmap

Live examples

https://zakodium.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