DocumentationNuxt Charts v3

Radial Bar Chart

Learn how to implement and customize Radial Bar Charts in your Nuxt application.

The RadialBarChart component renders each value as a concentric arc, a compact and eye-catching alternative to a bar chart for comparing a handful of categories. New in v3.

Basic Usage

Props

PropTypeDefaultDescription
datanumber[]RequiredSegment values, in the same order as categories.
categoriesRecord<string, BulletLegendItemInterface>RequiredMaps each segment to its name and color.
heightnumberRequiredHeight of the chart in pixels.
innerRadiusnumber | string'30%'Inner radius in pixels or percent string.
outerRadiusnumber | string'100%'Outer radius in pixels or percent string.
startAnglenumber90Start angle in degrees.
endAnglenumber-270End angle in degrees (full turn by default).
cornerRadiusnumberundefinedCorner radius of each bar in pixels.
backgroundbooleantrueDraw the faint background track behind each bar.
hideLegendbooleanfalseIf true, hides the chart legend.
legendPositionLegendPositionundefinedPosition of the legend.
legendStyleRecord<string, string>undefinedOptional inline CSS styles for the legend container.
hideTooltipbooleanfalseIf true, hides the tooltip.
tooltipTitleFormatter(data: T) => string | numberundefinedCustom formatter for tooltip titles.
tooltipTooltipConfigundefinedTooltip configuration.
durationnumberundefinedAnimation duration in milliseconds.

Data Format

Like the Donut chart, data is a positional array of numbers. Each value maps by index to the matching entry in categories.

types.ts
const data: number[] = [1200, 940, 720, 410];