Skip to Content

Radial Area Chart

A Radial Area Chart in REAVIZ is a variation of the Area Chart. While a standard area chart displays quantitative data graphically, a radial area chart presents this data in a circular layout. The area between the axis and line is commonly emphasized with colors, textures, and hatchings. Radial Area Charts can represent cumulative totals over time or display categories.

When to use:

  • Visualize Cumulative Totals: Ideal for displaying cumulative data over time or categories.
  • Highlight Trends: Useful for highlighting trends and patterns in data.
  • Show Categories in a Circular Layout: Great for visualizing data categories in a radial format.

Quick Start

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

Examples

API

RadialAreaChartΒ 

NameTypeDefault
dataChartDataShape[]

Data the chart will receive to render.

seriesReactElement<RadialAreaSeriesProps, FC<Partial<RadialAreaSeriesProps>>>

The series component that renders the area components.

`<RadialAreaSeries />`
innerRadiusnumber

The inner radius for the chart center.

0.1
axisReactElement<RadialAxisProps, FC<Partial<RadialAxisProps>>> | null

The radial axis component for the chart.

`<RadialAxis />`
startAnglenumber

Start angle for the first value.

0
endAnglenumber

End angle for the last value.

2 * Math.PI
isClosedCurveboolean

Whether the curve should be closed. Set to true by deafult

true
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.

RadialAreaSeriesΒ 

NameTypeDefault
dataChartInternalShallowDataShape[]

Parsed data shape. Set internally by RadialAreaChart.

typeRadialPointSeriesType

The type of the chart.

'standard'
colorSchemeColorSchemeType

Color scheme for the series.

schemes.cybertron
outerRadiusnumber

The outer radius for the chart center.

innerRadiusnumber

The inner radius for the chart center.

xScaleany

D3 scale for X Axis. Set internally by RadialAreaChart.

yScaleany

D3 scale for Y Axis. Set internally by RadialAreaChart.

idstring

Id set internally by RadialAreaChart.

interpolationRadialInterpolationTypes

interpolation set internally by RadialAreaChart.

'smooth'
animatedboolean

Whether to animate the enter/update/exit.

true
heightnumber

Height of the chart. Set internally by RadialAreaChart.

widthnumber

Width of the chart. Set internally by RadialAreaChart.

areaReactElement<RadialAreaProps, FC<Partial<RadialAreaProps>>> | null

Area that is rendered.

`<RadialArea />`
lineReactElement<RadialLineProps, FC<Partial<RadialLineProps>>> | null

Line that is rendered.

`<RadialLine />`
symbolsReactElement<RadialPointSeriesProps, FC<Partial<RadialPointSeriesProps>>> | null

Symbols used to show points.

`<RadialPointSeries />`
tooltipReactElement<TooltipAreaProps, ForwardRefExoticComponent<Partial<TooltipAreaProps> & RefAttributes<any>>>

Tooltip for the chart area.

`<TooltipArea />`
startAnglenumber

Start angle for the first value.

0
endAnglenumber

End angle for the last value.

2 * Math.PI
isClosedCurveboolean

Whether the curve should be closed. Set to true by deafult

true
valueMarkersReactElement<RadialValueMarkerProps, FC<RadialValueMarkerProps>>[] | null

Value markers line for the chart.

RadialAreaΒ 

NameTypeDefault
dataChartInternalShallowDataShape[]

Parsed data shape. Set internally by RadialAreaChart.

animatedboolean

Whether to animate the enter/update/exit.

xScaleany

D3 scale for X Axis. Set internally by RadialAreaChart.

yScaleany

D3 scale for Y Axis. Set internally by RadialAreaChart.

interpolationRadialInterpolationTypes

Interpolation for the area. Set internally by RadialAreaSeries.

colorany

Color for the area. Set internally by RadialAreaSeries.

idstring

Id set internally by RadialAreaSeries.

innerRadiusnumber

The inner radius for the chart center.

outerRadiusnumber

The outer radius for the chart center.

classNamestring

CSS classes to apply.

indexnumber

Index of the area in the series. Set internally by RadialAreaSeries.

gradientReactElement<RadialGradientProps, FC<Partial<RadialGradientProps>>> | null

Gradient to apply to the area.

`<RadialGradient />`
isClosedCurveboolean

Whether the curve should be closed. Set to true by deafult

true

RadialLineΒ 

NameTypeDefault
dataChartInternalShallowDataShape[]

Parsed data shape. Set internally by RadialAreaChart.

animatedboolean

Whether to animate the enter/update/exit. Set internally by RadialAreaSeries.

true
xScaleany

D3 scale for X Axis. Set internally by RadialAreaChart.

yScaleany

D3 scale for Y Axis. Set internally by RadialAreaChart.

colorany

Color for the area. Set internally by RadialAreaSeries.

interpolationRadialInterpolationTypes

Interpolation for the area. Set internally by RadialAreaSeries.

indexnumber

Index of the area in the series. Set internally by RadialAreaSeries.

strokeWidthnumber

Stroke width of the line.

2
classNamestring

CSS classes to apply.

hasAreaboolean

Internal property to identify if there is a area or not.

isClosedCurveboolean

Whether the curve should be closed. Set to true by deafult

true

RadialPointSeriesΒ 

NameTypeDefault
animatedboolean

Whether the points are animated or not.

colorany

Color scheme.

indexnumber

Index of the area in the series. Set internally by RadialAreaSeries.

activeValuesany

Active values set by parent.

dataChartInternalShallowDataShape[]

Parsed data object.

yScaleany

D3 X-Scale.

xScaleany

D3 Y-Scale.

showboolean | "hover" | "first" | "last"

When to show the point.

'hover'
pointReactElement<RadialScatterPointProps, FC<Partial<RadialScatterPointProps>>>

Point react component.

`<RadialScatterPoint />`
Last updated on