Installation
npm install @hueglint/core # vanilla / any frameworknpm install @hueglint/react # ReactQuick start
import { Heatmap } from '@hueglint/core';
const chart = new Heatmap(document.getElementById('chart'));chart.load([ { row: 'Mon', col: '8am', value: 42 }, { row: 'Mon', col: '9am', value: 58 },], { rowLabel: 'Day', colLabel: 'Hour', valueLabel: 'Requests' });With React:
import { Heatmap } from '@hueglint/react';
function Dashboard() { return ( <Heatmap data={data} context={{ rowLabel: 'Day', colLabel: 'Hour', valueLabel: 'Requests' }} /> );}