Display beautiful SVG heat maps.
$ npm i @zakodium/react-heatmap
https://zakodium-oss.github.io/react-heatmap
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']}
/>
);
}