Chart

Diverging bar

Web supportediOS supportedAndroid supported

Compare positive and negative values around a shared zero.

ECharts bar series · View source

When to use

Use for variance, sentiment, gain/loss and change from baseline.

Props

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

PropTypeDefaultDescription
data*ChartDatum[]Signed values positioned around zero.
formatChartNumberFormatNumber formatting shared by axes, labels and tooltips.
orientation"horizontal" | "vertical""horizontal"Direction in which values diverge.
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.