Skip to main content

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
DataRows to chart, one spoke per row.Array
Category fieldField 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 shapeShape of the background grid: straight-sided polygon rings or round circle rings.polygon, circle. Default: polygon
GridShows the background grid of rings and spokes.On or off. Default: On
DotsMarks each value with a dot on the shape's outline.On or off. Default: Off
Value prefixText shown before values in the tooltip, such as $.Text
Value suffixText shown after values in the tooltip, such as %.Text
Empty messageMessage shown when there is no data to chart.Text. Default: No data
AnimateAnimates the shapes when the chart first draws or its data changes.On or off. Default: On
LegendShows 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 pointRings the clicked category's point on each series until another is clicked or Clear clicked point runs.On or off. Default: Off
Loading lookWhat 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
VisibilityShows or hides the component. Hidden components keep their space unless Collapse when hidden is on.On or off. Default: On
Collapse when hiddenRemoves the hidden component's space, so the components below it move up.On or off. Default: Off
Loading stateShows the component's loading look and blocks interaction, for example while a query runs.On or off. Default: Off
DisableStops the user from interacting with the component.On or off. Default: Off

Devices​

Property
Description
Expected Value
Show on desktopShows the component in the desktop layout.On or off. Default: On
Show on mobileShows 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 clickTriggers when the user clicks a category on the chart.
On double clickTriggers 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 pointClears the clicked point and its highlight.components.radarchart1.clearClickedPoint()
Set visibilityShows the component when true, hides it when false.components.radarchart1.setVisibility(false)
Set disableDisables the component when true, enables it when false.components.radarchart1.setDisable(false)
Set loadingTurns the loading state on with true, off with false.components.radarchart1.setLoading(false)

Exposed Variables​

Variable
Description
How To Access
dataRows to chart, one spoke per row.{{components.radarchart1.data}}
categoryFieldField in each row that names the spoke.{{components.radarchart1.categoryField}}
yFieldsField 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}}
maxValueValue at the outer edge of the chart. Leave empty to set it from the data.{{components.radarchart1.maxValue}}
fillOpacityHow solid the filled shapes are, from 0 (outline only) to 1 (solid).{{components.radarchart1.fillOpacity}}
gridShapeShape of the background grid: straight-sided polygon rings or round circle rings.{{components.radarchart1.gridShape}}
showGridShows the background grid of rings and spokes.{{components.radarchart1.showGrid}}
showDotsMarks each value with a dot on the shape's outline.{{components.radarchart1.showDots}}
valuePrefixText shown before values in the tooltip, such as $.{{components.radarchart1.valuePrefix}}
valueSuffixText shown after values in the tooltip, such as %.{{components.radarchart1.valueSuffix}}
emptyTextMessage shown when there is no data to chart.{{components.radarchart1.emptyText}}
animateAnimates the shapes when the chart first draws or its data changes.{{components.radarchart1.animate}}
showLegendShows a legend that names each series and its color.{{components.radarchart1.showLegend}}
seriesLabelsNames to show for the series instead of their field names, for example { "alex": "Alex" }.{{components.radarchart1.seriesLabels}}
colorsColors for the series, used in order. Leave empty to use the theme's chart colors.{{components.radarchart1.colors}}
highlightClickedRings the clicked category's point on each series until another is clicked or Clear clicked point runs.{{components.radarchart1.highlightClicked}}
loadingIndicatorWhat shows while the chart is loading: a spinner or a skeleton block.{{components.radarchart1.loadingIndicator}}
clickedDataPointThe data row of the category the user clicked last, with every series' value.{{components.radarchart1.clickedDataPoint}}
isVisibleWhether the component is visible.{{components.radarchart1.isVisible}}
isLoadingWhether the component is in its loading state.{{components.radarchart1.isLoading}}
isDisabledWhether the component is disabled.{{components.radarchart1.isDisabled}}

Styles​

Style
Default
Chart color (series palette from it)Theme: Brand primary
Grid line colorTheme: Default border
Axis label colorTheme: Placeholder text
Legend text colorTheme: Placeholder text
Box shadow0px 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.