radialBar
Configuration Structure
radialBar: {}size
Deprecated. This property is no longer available.
inverseOrder
Whether to make the first value of series innermost or outermost
startAngle
Angle from which the radialBars should start
endAngle
Angle to which the radialBars should end. The sum of the startAngle and endAngle should not exceed 360.
offsetX
Sets the left offset for radialBars
offsetY
Sets the top offset for radialBars
margin
Spacing which will be subtracted from the available hollow size
size
Size in percentage relative to the total available size of chart
background
Background color for the hollow part of the radialBars
image
Optional image URL which can be displayed in the hollow area.
imageWidth
Width of the hollow image
imageHeight
Height of the hollow image
imageOffsetX
Sets the left offset of hollow image
imageOffsetY
Sets the top offset of hollow image
imageClipped
If true, the image doesn't exceeds the hollow area and is contained within.
position
Available Options
- front
- back
dropShadow
enabled
Enable a dropshadow for paths of the SVG
top
Set top offset for shadow
left
Set left offset for shadow
blur
Set blur distance for shadow
opacity
Set the opacity of shadow.
color
Color of the dropshadow
track
show
Show track under the bar lines.
startAngle
Angle from which the track should start.
endAngle
Angle to which the track should end.
background
Color of the track. If you want different color for each track, you can pass an array of colors.
strokeWidth
Width of the track
opacity
Opacity of the track
margin
Spacing between each track
dropShadow
enabled
Enable a dropshadow for the track
top
Set top offset for track shadow
left
Set left offset for track shadow
blur
Set blur distance for track shadow
opacity
Opacity of the track shadow
color
Color of the track dropshadow
dataLabels
show
Whether to display labels inside radialBars or not
name
show
Show the name of the respective bar associated with it's value
fontSize
FontSize of the name in dataLabel
fontFamily
FontFamily of the name in dataLabel
fontWeight
Font-weight of the name in dataLabel
color
Color of the name in dataLabel
offsetY
Sets the top offset for name
value
show
Show the value label associated with the name label
fontSize
FontSize of the value label in dataLabel
fontFamily
fontFamily of the value label in dataLabel
fontWeight
Font weight of the value label in dataLabel
color
Color of the value label in dataLabel
offsetY
Sets the top offset for value label
formatter
A custom formatter function to apply on the value label in dataLabel
total
show
Show the total of all the series in the inner area of radialBar
label
Label for "total". Defaults to "Total"
color
Color of the total label
fontSize
Font-size of the total label in dataLabel
fontFamily
font-family of the total label in dataLabel
fontWeight
font-weight of the total label in dataLabel
formatter
A custom formatter function to apply on the total value. It accepts one parameter w which contains the chart's config and global objects.
Defaults to a total of all series percentage divided by the length of series.
barLabels
enabled
When using custom angles in a radial bar chart, you can use this option. Here's a demo using this option
offsetX
Left offset of the labels
offsetY
Top offset of the labels
useSeriesColors
Whether to use primary colors or not.
fontSize
Sets the font-size of legend text elements
fontFamily
Sets the font-family of legend text elements
fontWeight
Sets the font-weight of legend text elements
formatter
A custom formatter function to modify the label text
onClick
Fire an event when the label is clicked