Chart

Dumbbell

Web supportediOS supportedAndroid supported

Show movement between exactly two measurements per item.

ECharts custom series · View source

When to use

Use when the story is change between two known states.

Props

The chart's own props first, then the shared ones this form reads.

PropTypeDefaultDescription
rows*ChartDumbbellRow[]Paired before and after values.
beforeLabel*stringTranslated label for the first measurement.
afterLabel*stringTranslated label for the second measurement.
formatChartNumberFormatNumber formatting shared by axes, labels and tooltips.
axisChartAxes{ x: true, y: true }Horizontal and vertical axis visibility.
texturebooleanfalseDraws decal patterns over fills — a second encoding on top of hue, for full colour-vision deficiency, print and forced-colors.
classNamestringCSS class applied to the chart root.
heightnumber240Plot height in px. A chart never measures its own content, so this is what reserves the space.
isLoadingbooleanfalseHeld true while the data is in flight. Shows the matching skeleton, then cross-fades into the plot.
skeletonReactNodeReplaces the built-in placeholder while isLoading is true. Takes a rendered element.
surfaceChartSurfaceThe container the plot sits in — background, border, corner radius, padding. Merges over Chart.Provider, key by key.