Polar Area Chart
The Polar Area Chart is a circular chart where each segment radiates outward from the centre. Unlike a pie chart where slice angle determines size, in a polar area chart every segment has the same angle and the radius of each segment represents its value. This makes it easy to compare magnitudes across categories while keeping all segments visually present, even small ones.
Properties
The following properties are available to configure the Polar Area Chart component from the form designer. These are in addition to the common properties shared by all Shesha components.
General
Data Source Type object
Controls where the chart fetches its data.
| Option | When to use |
|---|---|
Entity Type | Pull data directly from a Shesha entity using the built-in API. This is the right choice for most charts. |
URL | Pull data from a custom API endpoint. Use this when your data comes from a non-standard source or a custom backend action. |
Height number
The height of the chart in pixels. The minimum value is 200. Setting a height adjusts the width proportionally for responsiveness. Only visible when Width is not set.
Width number
The width of the chart in pixels. The minimum value is 300. Setting a width adjusts the height proportionally for responsiveness. Only visible when Height is not set.
Show Border boolean
When enabled, a border is drawn around the chart container. Enabled by default.
Chart Settings
Simple / Pivot object
Controls whether the chart uses one grouping dimension or two.
| Option | When to use |
|---|---|
Simple | Each segment represents one distinct value of the Axis Property. This is the standard polar area layout. |
Pivot | Each segment is further broken down by a second dimension using the Legend Property. Use this for more complex distributions. |
Show Title boolean
When enabled, a title appears above the chart.
Title string
The text displayed as the chart heading. Only appears when Show Title is enabled.
Show Legend boolean
When enabled, a legend appears on the chart that maps each segment colour to its category label. Because all segments have equal angles, the legend is important for identifying which segment represents which category.
Legend Position object
Controls where the legend appears relative to the chart. Only appears when Show Legend is enabled.
| Option | Description |
|---|---|
Top | Legend appears above the chart. |
Bottom | Legend appears below the chart. |
Left | Legend appears to the left of the chart. |
Right | Legend appears to the right of the chart. |
Stroke Width number
The thickness of the border drawn around each segment, in pixels. Range is 0 to 10. Set to 0 to remove segment borders entirely.
Stroke Color string
The colour of the border drawn around each segment. Use a hex colour code or the colour picker.
Data Settings
The settings available in this section depend on the Data Source Type selected in the General panel.
URL string
The API endpoint Shesha calls to fetch chart data. Appears when Data Source Type is URL.
Entity Type object
The Shesha entity to pull data from. Appears when Data Source Type is Entity Type. Use the autocomplete to select a known entity, for example Shesha.Domain.Person.