Radar Chart
Rocket 2.0
The Radar Chart component compares one or more series across several categories on spokes around a center, such as scoring vendors or team members on the same set of skills.
Properties​
Property | Description | Expected Value |
|---|---|---|
| Data | Rows to chart, one spoke per row. | Array |
| Category field | Field in each row that names the spoke. | Text. Default: skill |
| Series fields (one or many) | Field or fields that hold each series' values, as one name, a list or a comma-separated list. Each field is drawn as its own shape. | Text. Default: alex, jordan |
| Max value (blank = auto) | Value at the outer edge of the chart. Leave empty to set it from the data. | Text. Default: 100 |
| Fill opacity (0 to 1) | How solid the filled shapes are, from 0 (outline only) to 1 (solid). | Number. Default: 0.5 |
| Grid shape | Shape of the background grid: straight-sided polygon rings or round circle rings. | polygon, circle. Default: polygon |
| Grid | Shows the background grid of rings and spokes. | On or off. Default: On |
| Dots | Marks each value with a dot on the shape's outline. | On or off. Default: Off |
| Value prefix | Text shown before values in the tooltip, such as $. | Text |
| Value suffix | Text shown after values in the tooltip, such as %. | Text |
| Empty message | Message shown when there is no data to chart. | Text. Default: No data |
| Animate | Animates the shapes when the chart first draws or its data changes. | On or off. Default: On |
| Legend | Shows a legend that names each series and its color. | On or off. Default: On |
| Series labels ({ field: label }) | Names to show for the series instead of their field names, for example { "alex": "Alex" }. | Object |
| Series colors (in order) | Colors for the series, used in order. Leave empty to use the theme's chart colors. | Array |
| Highlight clicked point | Rings the clicked category's point on each series until another is clicked or Clear clicked point runs. | On or off. Default: Off |
| Loading look | What shows while the chart is loading: a spinner or a skeleton block. | Spinner, Skeleton. Default: Spinner |
Additional Actions​
Each of these can be switched on or off, or set with a logical expression by clicking fx.
Property | Description | Expected Value |
|---|---|---|
| Visibility | Shows or hides the component. Hidden components keep their space unless Collapse when hidden is on. | On or off. Default: On |
| Collapse when hidden | Removes the hidden component's space, so the components below it move up. | On or off. Default: Off |
| Loading state | Shows the component's loading look and blocks interaction, for example while a query runs. | On or off. Default: Off |
| Disable | Stops the user from interacting with the component. | On or off. Default: Off |
Devices​
Property | Description | Expected Value |
|---|---|---|
| Show on desktop | Shows the component in the desktop layout. | On or off. Default: On |
| Show on mobile | Shows the component in the mobile layout. | On or off. Default: Off |
Events​
Add a handler from the Events section of the properties panel. See Event Triggers for the steps.
Event | Description |
|---|---|
| On click | Triggers when the user clicks a category on the chart. |
| On double click | Triggers when the user double-clicks the chart. |
Component Specific Actions (CSA)​
Run these from an event handler with Control Component, or from a RunJS query. See Component Specific Actions.
Action | Description | How To Access |
|---|---|---|
| Clear clicked point | Clears the clicked point and its highlight. | components.radarchart1.clearClickedPoint() |
| Set visibility | Shows the component when true, hides it when false. | components.radarchart1.setVisibility(false) |
| Set disable | Disables the component when true, enables it when false. | components.radarchart1.setDisable(false) |
| Set loading | Turns the loading state on with true, off with false. | components.radarchart1.setLoading(false) |
Exposed Variables​
Variable | Description | How To Access |
|---|---|---|
data | Rows to chart, one spoke per row. | {{components.radarchart1.data}} |
categoryField | Field in each row that names the spoke. | {{components.radarchart1.categoryField}} |
yFields | Field or fields that hold each series' values, as one name, a list or a comma-separated list. Each field is drawn as its own shape. | {{components.radarchart1.yFields}} |
maxValue | Value at the outer edge of the chart. Leave empty to set it from the data. | {{components.radarchart1.maxValue}} |
fillOpacity | How solid the filled shapes are, from 0 (outline only) to 1 (solid). | {{components.radarchart1.fillOpacity}} |
gridShape | Shape of the background grid: straight-sided polygon rings or round circle rings. | {{components.radarchart1.gridShape}} |
showGrid | Shows the background grid of rings and spokes. | {{components.radarchart1.showGrid}} |
showDots | Marks each value with a dot on the shape's outline. | {{components.radarchart1.showDots}} |
valuePrefix | Text shown before values in the tooltip, such as $. | {{components.radarchart1.valuePrefix}} |
valueSuffix | Text shown after values in the tooltip, such as %. | {{components.radarchart1.valueSuffix}} |
emptyText | Message shown when there is no data to chart. | {{components.radarchart1.emptyText}} |
animate | Animates the shapes when the chart first draws or its data changes. | {{components.radarchart1.animate}} |
showLegend | Shows a legend that names each series and its color. | {{components.radarchart1.showLegend}} |
seriesLabels | Names to show for the series instead of their field names, for example { "alex": "Alex" }. | {{components.radarchart1.seriesLabels}} |
colors | Colors for the series, used in order. Leave empty to use the theme's chart colors. | {{components.radarchart1.colors}} |
highlightClicked | Rings the clicked category's point on each series until another is clicked or Clear clicked point runs. | {{components.radarchart1.highlightClicked}} |
loadingIndicator | What shows while the chart is loading: a spinner or a skeleton block. | {{components.radarchart1.loadingIndicator}} |
clickedDataPoint | The data row of the category the user clicked last, with every series' value. | {{components.radarchart1.clickedDataPoint}} |
isVisible | Whether the component is visible. | {{components.radarchart1.isVisible}} |
isLoading | Whether the component is in its loading state. | {{components.radarchart1.isLoading}} |
isDisabled | Whether the component is disabled. | {{components.radarchart1.isDisabled}} |
Styles​
Style | Default |
|---|---|
| Chart color (series palette from it) | Theme: Brand primary |
| Grid line color | Theme: Default border |
| Axis label color | Theme: Placeholder text |
| Legend text color | Theme: Placeholder text |
| Box shadow | 0px 0px 0px 0px #00000040 |
A default that starts with Theme: follows the app's theme until the style is set to another value. See App Themes.