Polar area chart — pure SVG, zero JS.
Each data point occupies an equal angular slice. The radius of each slice is proportional to its value. Based on Chart.js PolarAreaController pattern.
Examples
<.polar_area_chart data={[
%{label: "Speed", value: 80},
%{label: "Power", value: 65},
%{label: "Endurance", value: 90},
%{label: "Agility", value: 75},
%{label: "Recovery", value: 70}
]} />
Summary
Functions
Attributes
data(:list) (required) - List of%{label, value}(and optional:color).colors(:list) - Override default palette. Defaults to[].max(:any) - Maximum value for radius scaling. Auto-detected if nil. Defaults tonil.spacing(:integer) - Gap in pixels between slices. Defaults to2.show_grid(:boolean) - Show concentric circle grid. Defaults totrue.show_labels(:boolean) - Show axis labels. Defaults totrue.animate(:boolean) - Defaults totrue.animation_duration(:integer) - Defaults to600.id(:string) - Unique ID for the chart (auto-generated if not provided). Defaults tonil.title(:string) - Chart title rendered above the visualization. Defaults tonil.description(:string) - Chart description for context (rendered below title). Defaults tonil.class(:string) - Defaults tonil.- Global attributes are accepted.