WarUI

Sparklines in Cells

GRID-A18-F13P1baselinePlanned

Renders a small line, area, column or win/loss chart inside a cell from an array or series value. It is built into the core with no chart library required. Optional markers highlight the min, max, first and last points.

Planned. This page shows the specification from issue #198. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

Flat grid of 200 products. The Trend column holds 12 monthly numbers rendered as a line sparkline.

Expected behavior

Sparklines redraw when the type changes. A shared y-domain makes rows comparable. Hovering or keyboard-focusing a point shows its value. Scrolling 200 rows stays smooth thanks to virtualization.

Planned API surface

column.cellRenderer='sparkline'sparkline.typesparkline.valueAccessorsparkline.markerssparkline.colorsparkline.tooltipsparkline.yDomain

Acceptance criteria

  • The sparkline renders from number arrays and from {x, y} object arrays via valueAccessor. (pending)
  • Win/loss treats positive values as up bars, negative values as down bars and zero as no bar. (pending)
  • Shared y-domain uses the same scale for every visible row. (pending)
  • Rendering cost is documented and measured: 200 visible sparklines render within the documented budget. (pending)
  • No external charting dependency is loaded. (pending)