Skip to content

Documentation / @ripl/charts / RadialBarChartOptions

Interface: RadialBarChartOptions<TData> ​

Defined in: charts/src/charts/radial-bar.ts:83

Options for configuring a RadialBarChart.

Extends ​

Type Parameters ​

Type ParameterDefault type
TDataunknown

Properties ​

PropertyTypeDescriptionInherited fromDefined in
animation?boolean | Partial<ChartAnimationOptions>Animation configuration, or a boolean toggling all transitions. See ChartAnimationOptions.BaseChartOptions.animationcharts/src/core/chart.ts:128
autoRender?booleanWhether the chart renders automatically on construction and after every Chart.update. Defaults to true.BaseChartOptions.autoRendercharts/src/core/chart.ts:122
colorBy?keyof TData | ((item) => string)Optional accessor for a per-item color override (otherwise a palette color is generated).-charts/src/charts/radial-bar.ts:93
dataTData[]The dataset to render, one concentric ring per item.-charts/src/charts/radial-bar.ts:85
description?stringAccessible description announced by screen readers (sets the rendering element's ARIA label). Defaults to the title text.BaseChartOptions.descriptioncharts/src/core/chart.ts:132
format?ValueFormatInputFormat applied to values shown as text (e.g. tooltips).-charts/src/charts/radial-bar.ts:109
gap?numberGap between concentric rings as a ratio of the ring thickness (0–0.9). Defaults to 0.25.-charts/src/charts/radial-bar.ts:101
innerRadius?numberInner hole radius as a ratio of the chart size (0–1). Defaults to 0.2.-charts/src/charts/radial-bar.ts:97
keykeyof TData | ((item) => string)Accessor for each item's unique key, used to match rings across data updates.-charts/src/charts/radial-bar.ts:87
label?keyof TData | ((item) => string)Optional accessor for each item's display label (defaults to its key).-charts/src/charts/radial-bar.ts:91
labels?ChartDataLabelsInputShow each ring's value just past the end of its bar, at the ring's mid-radius (true/false or detailed label options). Off by default.-charts/src/charts/radial-bar.ts:111
legend?ChartLegendInputLegend configuration. Shown by default when there is more than one ring.-charts/src/charts/radial-bar.ts:107
max?numberMaximum value mapped to a full sweep (defaults to the largest value in the data).-charts/src/charts/radial-bar.ts:95
padding?PaddingInputSpace reserved around the chart, in pixels. A single number applies to all four edges; a [top, right, bottom, left] tuple or a partial { top, right, bottom, left } object sets individual edges, leaving unspecified edges at the default. Defaults to 16.BaseChartOptions.paddingcharts/src/core/chart.ts:124
range?numberAngular sweep of a full-value bar, in degrees. Defaults to 360 (a full circle).-charts/src/charts/radial-bar.ts:99
rounded?booleanRound the ends of each value bar (and its track). Defaults to false.-charts/src/charts/radial-bar.ts:105
theme?string | ThemeTheme for this chart: a registered name ('light'/'dark'/'auto'), or a Theme. Falls back to the module default (see setDefaultTheme).BaseChartOptions.themecharts/src/core/chart.ts:130
title?string | Partial<ChartTitleOptions>Chart title as plain text, or a ChartTitleOptions object for full control.BaseChartOptions.titlecharts/src/core/chart.ts:126
trackColor?stringColor of the faint full-length track drawn behind each value bar. Defaults to a light gray.-charts/src/charts/radial-bar.ts:103
valueNumericAccessor<TData>Accessor for each item's numeric value, which determines its arc length.-charts/src/charts/radial-bar.ts:89