Klar

Charts / React BI charts / Time series

Horizon chart

Two dozen series in tight rows, each folded into colour bands that deepen with size, so every store’s good and bad days against plan compare at a glance across a whole year.

React component HorizonChart, data through props. One or more measures over a continuous run of time. Tags: horizon, small multiples, time series, deviation, variance to plan, dense, sortable.

Install

npm i klar-charts

import 'klar-charts/styles.css'
import { ThemeScope, HorizonChart } from 'klar-charts'

# or copy the source:
npx shadcn@latest add https://klar.run/r/bi-horizon.json

Usage

<HorizonChart
  series={storeVsPlan}
  dates={storeDates}
  bands={+b as 2 | 3 | 4}
  mode={mode as 'mirror' | 'offset'}
  rowNoun="Store"
  valueLabel="% vs daily plan"
  format={(v) => `${v > 0 ? '+' : v < 0 ? '−' : ''}${Math.abs(v).toFixed(1)}%`}
/>

Related horizon charts