# Materials (/docs/charts/guides/materials)

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.

<Example caption="Both series use the clay finish. Hover a quarter to see its loans.">
<Basic />

```tsx
"use client";

import { BarChart, type SeriesConfig } from "@kind-ui/charts";

const data = [
  { quarter: "Q1", print: 32, digital: 48 },
  { quarter: "Q2", print: 28, digital: 56 },
  { quarter: "Q3", print: 30, digital: 61 },
  { quarter: "Q4", print: 26, digital: 70 },
];

const config = {
  print: { label: "Print", color: "#e07a2f" },
  digital: { label: "Digital", color: "#733bff" },
} satisfies SeriesConfig;

export default function LoansChart() {
  return (
    <BarChart data={data} config={config} aria-label="Library loans by quarter, in thousands">
      <BarChart.Grid />
      <BarChart.XAxis dataKey="quarter" />
      <BarChart.YAxis width={40} />
      <BarChart.Series dataKey="print" material="clay" radius={6} />
      <BarChart.Series dataKey="digital" material="clay" radius={6} />
      <BarChart.Tooltip />
      <BarChart.Legend />
    </BarChart>
  );
}
```
</Example>

## Usage [#usage]

### Where It Goes [#where-it-goes]

Set `material` on the part that draws the marks:

| Chart | Part |
| --- | --- |
| [Line](../components/line.mdx), [Area](../components/area.mdx), [Bar](../components/bar.mdx), [Histogram](../components/histogram.mdx), [Waterfall](../components/waterfall.mdx), [Box Plot](../components/box-plot.mdx), [Scatter](../components/scatter.mdx) | `.Series` |
| [Pie](../components/pie.mdx), [Radar](../components/radar.mdx), [Radial](../components/radial.mdx) | `.Series` |
| [Heatmap](../components/heatmap.mdx) | `HeatmapChart.Grid` |
| [Sankey](../components/sankey.mdx) | `finish` 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"`.

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

### Choosing One [#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.