Skip to Content
kindui

Materials

Give chart marks a clay or glow finish without changing their values.

Set material on a series to change how its marks are finished: "clay" for soft relief, "glow" for light around the marks, or leave it unset for flat paint ("plain"). A material changes only the look, never the geometry, values, tooltip or legend.

Both series use the clay finish. Hover a quarter to see its loans.

Usage

Where It Goes

Set material on the part that draws the marks:

ChartPart
Line, Area, Bar, Histogram, Waterfall, Box Plot, Scatter.Series
Pie, Radar, Radial.Series
HeatmapHeatmapChart.Grid
Sankeyfinish on SankeyChart.Node and SankeyChart.Link

Combo charts take it on each of their line, area and bar series. Sankey uses finish because its links already have a material for their paint: "solid" or "gradient".

<SankeyChart.Links render={(props) => <SankeyChart.Link {...props} finish="glow" />} />

Choosing One

Mix finishes in one chart only when they mean something, like a glowing forecast next to plain actuals. A pie can glow only some slices with glowCategories. Glow and clay draw slightly past the marks, so leave a little margin at the edges of the plot. They don't fix contrast: check each series against the background in both light and dark.

A custom shape, fill or filter you pass to a series replaces the built-in finish.