Skip to Content

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Β 

NameTypeDefault
dataChartDataShape[]

Data the chart will receive to render.

seriesReactElement<RadialBarSeriesProps, FC<Partial<RadialBarSeriesProps>>>

The series component that renders the bar components.

`<RadialBarSeries />`
axisReactElement<RadialAxisProps, FC<Partial<RadialAxisProps>>> | null

The radial axis component for the chart.

`<RadialAxis />`
innerRadiusnumber

The inner radius for the chart center.

10
startAnglenumber

Start angle for the first value.

0
endAnglenumber

End angle for the last value.

2 * Math.PI
idstring

Id of the chart.

widthnumber

Width of the chart. If not provided will autosize.

heightnumber

Height of the chart. If not provided will autosize.

marginsMargins

Margins for the chart.

classNamestring

Classnames for the chart.

containerClassNamestring

Classnames for the chart.

styleStyleHTMLAttributes<SVGSVGElement>

Additional css styles.

centerboolean

Center the chart. Used mainly internally.

centerXboolean

Center chart on X Axis only. Used mainly internally.

centerYboolean

Center chart on Y Axis only. Used mainly internally.

RadialBarSeriesΒ 

NameTypeDefault
dataChartInternalDataShape[]

Parsed data shape. Set internally by RadialBarChart.

colorSchemeColorSchemeType

Color scheme for the series.

schemes.cybertron[0]
innerRadiusnumber

The inner radius for the chart center.

outerRadiusnumber

The outer radius for the chart center.

xScaleany

D3 scale for X Axis. Set internally by RadialBarChart.

yScaleany

D3 scale for Y Axis. Set internally by RadialBarChart.

idstring

Id set internally by RadialBarChart.

barReactElement<RadialBarProps, FC<Partial<RadialBarProps>>>

Bar that is rendered.

`<RadialBar />`
animatedboolean

Whether to animate the enter/update/exit.

true
heightnumber

Height of the chart. Set internally by RadialBarChart.

widthnumber

Width of the chart. Set internally by RadialBarChart.

tooltipReactElement<TooltipAreaProps, ForwardRefExoticComponent<Partial<TooltipAreaProps> & RefAttributes<any>>>

Tooltip for the chart area.

`<TooltipArea tooltip={<ChartTooltip followCursor />} />`
startAnglenumber

Start angle for the first value.

0
endAnglenumber

End angle for the last value.

2 * Math.PI
typeRadialBarSeriesType

The type of the chart.

'standard'
valueMarkersReactElement<RadialValueMarkerProps, FC<RadialValueMarkerProps>>[] | null

Value markers line for the chart.

RadialBarΒ 

NameTypeDefault
dataChartInternalShallowDataShape

Parsed data shape. Set internally by RadialBarChart.

innerRadiusnumber

The inner radius for the chart center.

indexnumber

Index of the element in the series. Set internally by RadialBarSeries.

animatedboolean

Whether the element is active or not. Set internally by RadialBarSeries.

xScaleany

D3 scale for X Axis. Set internally by RadialBarChart.

yScaleany

D3 scale for Y Axis. Set internally by RadialBarChart.

colorany

Color of the bar.

gradientboolean

Whether to use gradient or not.

true
idstring

Id set internally by RadialBarSeries.

barCountnumber

Total number of bars used for animation. Set internally by RadialBarSeries.

innerBarCountnumber

Total number of nested bars inside each group. Set internally by RadialBarSeries.

groupIndexnumber

Index of the group. Set internally by BarSeries.

classNamestring

CSS classes to apply.

curvedboolean

Whether the bar is curved or not.

false
guideReactElement<RadialGuideBarProps, FC<Partial<RadialGuideBarProps>>> | null

Guide bar component.

`<RadialGuideBar />`
activeboolean

Active caused by hover.

onClick(event: any) => void

Event for when a symbol is clicked.

onMouseEnter(event: any) => void

Event for when the symbol has mouse enter.

onMouseLeave(event: any) => void

Event for when the symbol has mouse leave.

Last updated on