@zakodium/react-heatmap
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

@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

Dependencies (3)

Dev Dependencies (32)

Package Sidebar

Install

npm i @zakodium/react-heatmap

Weekly Downloads

1

Version

2.0.0

License

MIT

Unpacked Size

76.5 kB

Total Files

54

Last publish

Collaborators

  • zakodium-bot
  • lpatiny
  • targos
  • stropitek