oks-ui

Data Visualization

Chart type="pie" -- ChartPieStyleOptions: slice border. Single series, one value per slice.

Preview

Pie chart
Pie chartJan, Feb, Mar, Apr, May, Jun

Click a data point to see onPointClick fire.

Type options

Content

Layout & positioning

Behavior & states

Drop the built-in card frame (border / padding / surface) — for a chart nested in a Card or a sparkline slot.

Props

data

Row[] | { categories, series }

Default:

Row-based data array, or explicit categories/series (required).

x

keyof Row | ((row: Row) => ChartCategory)

Default:

Category accessor, row-mode only.

series

ChartSeriesDef<Row> | ChartSeriesDef<Row>[]

Default:

Series accessor(s), row-mode only.

title / description

ReactNode

Default:

Chart heading text.

ariaLabel

string

Default:

Accessible label for the chart.

dataFormat

ChartDataFormatOptions

Default:

Value formatting (prefix/suffix/decimals) for labels/tooltips.

showLabels

ChartShowLabelsOptions

Default:

Inline value-label visibility.