IChartPolarBarWedge
interface
Chart
Single wedge descriptor produced by the polar-bar geometry engine. Exposes the pre-computed SVG <path d="…"> for the arc, label anchor position, and all data needed to render accessibility text and tooltip content.
TypeScript
Definition
The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.
API
Properties
Every property declared by this interface, with its type, optionality and default.
- indexrequirednumber
- Wedge index in the original data array.
- drequiredstring
- SVG <path d="…"> for the annular wedge shape.
- colorrequiredstring
- Resolved CSS colour string (intended for :style="{ fill: … }").
- categoryrequiredstring
- Category label.
- valuerequirednumber
- Raw numeric value.
- formattedrequiredstring
- Pre-formatted value string (via yAxisFormat or String(value)).
- visiblerequiredboolean
- Whether this wedge is currently visible (legend toggle).
- outerRrequirednumber
- Computed outer radius for this wedge.
- innerRrequirednumber
- Fixed inner radius (shared across all wedges).
- startAnglerequirednumber
- Start angle (radians).
- endAnglerequirednumber
- End angle (radians).
- midAnglerequirednumber
- Midpoint angle used for label placement.
- labelXrequirednumber
- X coordinate of the category label anchor.
- labelYrequirednumber
- Y coordinate of the category label anchor.
- labelAnchorrequired'start' | 'middle' | 'end'
- SVG text-anchor for the category label.
- percentagerequiredstring
- Percentage of total as a formatted string (e.g. "23.4%").
- showValueLabelrequiredboolean
- Whether the wedge is wide enough to host a value label inside.
- valueLabelXrequirednumber
- X coordinate of the in-wedge value label.
- valueLabelYrequirednumber
- Y coordinate of the in-wedge value label.
Ecosystem
Used by
Components and composables that extend or consume this interface.
Usage
Examples
Ready-to-paste code snippets using this interface.
Consuming wedge descriptors from the polar-bar engine