Docs
📊 ⏐ Charts
Radial Bar Chart

Radial Bar Chart

A Radial or Circular Bar Chart in REAVIZ is used for displaying circular data, which involves wrapping the usual bar chart or histogram around a circle. Each bar in the chart is centered at the middle of the group period, with the length of the bar proportional to the frequency in the group.

Where to use:

  • Display Circular Data: Ideal for representing data in a circular format.
  • Compare Categories: Useful for comparing categories or data points in a circular layout.
  • Visualize Frequency: Great for visualizing the frequency of data points within groups.

Quick Start

To create a Radial Bar chart, use import the RadialBarChart and give it data. The chart will automatically configure itself with the default options exposed via props.

Examples

API

RadialBarChart (opens in a new tab)

PropDescriptionDefault
dataData the chart will receive to render.
ChartDataShape[]
seriesThe series component that renders the bar components.
ReactElement<RadialBarSeriesProps, FC<Partial<RadialBarSeriesProps>>>
<RadialBarSeries />
axisThe radial axis component for the chart.
ReactElement<RadialAxisProps, FC<Partial<RadialAxisProps>>>
<RadialAxis />
innerRadiusThe inner radius for the chart center.
number
10
startAngleStart angle for the first value.
number
0
endAngleEnd angle for the last value.
number
2 * Math.PI
idId of the chart.
string
widthWidth of the chart. If not provided will autosize.
number
heightHeight of the chart. If not provided will autosize.
number
marginsMargins for the chart.
Margins
75
classNameClassnames for the chart.
string
containerClassNameClassnames for the chart.
string
styleAdditional css styles.
StyleHTMLAttributes<SVGSVGElement>
centerCenter the chart. Used mainly internally.
boolean
centerXCenter chart on X Axis only. Used mainly internally.
boolean
centerYCenter chart on Y Axis only. Used mainly internally.
boolean

RadialBarSeries (opens in a new tab)

PropDescriptionDefault
dataParsed data shape. Set internally by `RadialBarChart`.
ChartInternalDataShape[]
colorSchemeColor scheme for the series.
ColorSchemeType
schemes.cybertron[0]
innerRadiusThe inner radius for the chart center.
number
outerRadiusThe outer radius for the chart center.
number
xScaleD3 scale for X Axis. Set internally by `RadialBarChart`.
any
yScaleD3 scale for Y Axis. Set internally by `RadialBarChart`.
any
idId set internally by `RadialBarChart`.
string
barBar that is rendered.
ReactElement<RadialBarProps, FC<Partial<RadialBarProps>>>
<RadialBar />
animatedWhether to animate the enter/update/exit.
boolean
true
heightHeight of the chart. Set internally by `RadialBarChart`.
number
widthWidth of the chart. Set internally by `RadialBarChart`.
number
tooltipTooltip for the chart area.
ReactElement<TooltipAreaProps, ForwardRefExoticComponent<Partial<TooltipAreaProps> & RefAttributes<any>>>
<TooltipArea tooltip={<ChartTooltip followCursor={true} />} />
startAngleStart angle for the first value.
number
0
endAngleEnd angle for the last value.
number
2 * Math.PI
typeThe type of the chart.
RadialBarSeriesType
standard
valueMarkersValue markers line for the chart.
ReactElement<RadialValueMarkerProps, FC<RadialValueMarkerProps>>[]

RadialBar (opens in a new tab)

PropDescriptionDefault
dataParsed data shape. Set internally by `RadialBarChart`.
ChartInternalShallowDataShape
innerRadiusThe inner radius for the chart center.
number
indexIndex of the element in the series. Set internally by `RadialBarSeries`.
number
animatedWhether the element is active or not. Set internally by `RadialBarSeries`.
boolean
xScaleD3 scale for X Axis. Set internally by `RadialBarChart`.
any
yScaleD3 scale for Y Axis. Set internally by `RadialBarChart`.
any
colorColor of the bar.
any
gradientWhether to use gradient or not.
boolean
true
idId set internally by `RadialBarSeries`.
string
barCountTotal number of bars used for animation. Set internally by `RadialBarSeries`.
number
innerBarCountTotal number of nested bars inside each group. Set internally by `RadialBarSeries`.
number
groupIndexIndex of the group. Set internally by `BarSeries`.
number
classNameCSS classes to apply.
string
curvedWhether the bar is curved or not.
boolean
false
guideGuide bar component.
ReactElement<RadialGuideBarProps, FC<Partial<RadialGuideBarProps>>>
<RadialGuideBar />
activeActive caused by hover.
boolean
onClickEvent for when a symbol is clicked.
(event: any) => void
() => undefined
onMouseEnterEvent for when the symbol has mouse enter.
(event: any) => void
() => undefined
onMouseLeaveEvent for when the symbol has mouse leave.
(event: any) => void
() => undefined