Skip to content
Hazine

Line and area

1 of 7 shipped. Each take is a different structure, and the note under its title says how.

  • line and area

    The range control sits in the header and drives the headline, the delta, the plot and a stat strip together, so chart and stat tile are one component with a dashed previous-period line.

    shadcn add @hazine/line-chart-range-switch

    Depends on button, card, chart, @hazine/use-controllable-state, lucide-react, recharts

Planned 6

  • Multi-series line chart with direct labels

    No legend at all: series identity sits at the line end, and series are separated by dash pattern and marker shape rather than colour.

  • Stacked area chart with share toggle

    Stacked layers with an absolute versus share mode that rescales the y axis, plus pattern fills per layer.

  • Line chart compared to previous period

    Two time ranges overlaid on a relative x axis (day 1 to day N) instead of one calendar axis, with a paired tooltip that computes the difference.

  • Line chart with threshold band

    Adds a reference band and classifies every point as inside or outside it, surfacing breaches as marker shapes and a counted text summary.

  • Line chart with event annotations

    Pairs the plot with a synchronised ordered list of events, with two-way highlight between pin and list entry.

  • Step line chart for discrete changes

    Step interpolation with labelled change points instead of a continuous curve, so the reader sees when the value changed rather than a trend.