Polar

A polar coordinate plot — categories around the circle, value as radius. Bars (a rose), or a polar line/area.

Category: chart · WCAG 2.1-AA · chart, polar, rose, radial, data-viz

Props

PropTypeDefaultDescription
dataPolarDatum[]One entry per category: { label, value, color? }.
titlestringChart title (also aria-label).
descriptionstringSupporting description text.
mode'bar' | 'line' | 'area'barBars (rose), a polar line, or a filled polar area.
widthnumberFixed SVG width in px. ⚠ **Omit for a responsive chart** — the chart fills and tracks its container via a ResizeObserver; there is no correct pixel number in a responsive grid. A fixed width is clamped to the container (max-inline-size: 100%) so it can never overflow its card, but it also stops the chart growing. `useChartSize` is NOT needed for this — charts call it internally.
heightnumber320SVG height in px. Unlike `width`, height does NOT track the container — this is the knob you set to change the chart's aspect.
ringsnumber4Radial ring count.
maxnumberDomain top (full radius). Defaults to the largest value.
tooltipbooleanEnable hover tooltip.
classNamestringAdditional CSS class names merged onto the root element.
plainbooleanfalseMarks only — no rings or labels. For micro/inline charts.

Design tokens

When to use

When not to use

Examples

Wind rose

import { Polar } from '@cascivo/charts'

<Polar
  title="Wind by direction"
  mode="bar"
  tooltip
  data={[
    { label: 'N', value: 12 },
    { label: 'E', value: 8 },
    { label: 'S', value: 5 },
    { label: 'W', value: 15 },
  ]}
/>

Related components

← Back to docs