Docs
📊 ⏐ Charts
Radial Area Chart

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 (opens in a new tab)

PropDescriptionDefault
dataData the chart will receive to render.
ChartDataShape[]
seriesThe series component that renders the area components.
ReactElement<RadialAreaSeriesProps, FC<Partial<RadialAreaSeriesProps>>>
<RadialAreaSeries />
innerRadiusThe radial axis component for the chart.
number
0.1
axisThe inner radius for the chart center.
ReactElement<RadialAxisProps, FC<Partial<RadialAxisProps>>>
<RadialAxis />
startAngleStart angle for the first value.
number
0
endAngleEnd angle for the last value.
number
2 * Math.PI
isClosedCurveWhether the curve should be closed. Set to true by deafult
boolean
true
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

RadialAreaSeries (opens in a new tab)

PropDescriptionDefault
dataParsed data shape. Set internally by `RadialAreaChart`.
ChartInternalShallowDataShape[]
typeThe type of the chart.
RadialPointSeriesType
standard
colorSchemeColor scheme for the series.
ColorSchemeType
schemes.cybertron
outerRadiusThe outer radius for the chart center.
number
innerRadiusThe inner radius for the chart center.
number
xScaleD3 scale for X Axis. Set internally by `RadialAreaChart`.
any
yScaleD3 scale for Y Axis. Set internally by `RadialAreaChart`.
any
idId set internally by `RadialAreaChart`.
string
interpolationinterpolation set internally by `RadialAreaChart`.
RadialInterpolationTypes
smooth
animatedWhether to animate the enter/update/exit.
boolean
true
heightHeight of the chart. Set internally by `RadialAreaChart`.
number
widthWidth of the chart. Set internally by `RadialAreaChart`.
number
areaArea that is rendered.
ReactElement<RadialAreaProps, FC<Partial<RadialAreaProps>>>
<RadialArea />
lineLine that is rendered.
ReactElement<RadialLineProps, FC<Partial<RadialLineProps>>>
<RadialLine />
symbolsSymbols used to show points.
ReactElement<RadialPointSeriesProps, FC<Partial<RadialPointSeriesProps>>>
<RadialPointSeries />
tooltipTooltip for the chart area.
ReactElement<TooltipAreaProps, ForwardRefExoticComponent<Partial<TooltipAreaProps> & RefAttributes<any>>>
<TooltipArea />
startAngleStart angle for the first value.
number
0
endAngleEnd angle for the last value.
number
2 * Math.PI
isClosedCurveWhether the curve should be closed. Set to true by deafult
boolean
true
valueMarkersValue markers line for the chart.
ReactElement<RadialValueMarkerProps, FC<RadialValueMarkerProps>>[]

RadialArea (opens in a new tab)

PropDescriptionDefault
dataParsed data shape. Set internally by `RadialAreaChart`.
ChartInternalShallowDataShape[]
animatedWhether to animate the enter/update/exit.
boolean
xScaleD3 scale for X Axis. Set internally by `RadialAreaChart`.
any
yScaleD3 scale for Y Axis. Set internally by `RadialAreaChart`.
any
interpolationInterpolation for the area. Set internally by `RadialAreaSeries`.
RadialInterpolationTypes
colorColor for the area. Set internally by `RadialAreaSeries`.
any
idId set internally by `RadialAreaSeries`.
string
innerRadiusThe inner radius for the chart center.
number
outerRadiusThe outer radius for the chart center.
number
classNameCSS classes to apply.
string
indexIndex of the area in the series. Set internally by `RadialAreaSeries`.
number
gradientGradient to apply to the area.
ReactElement<RadialGradientProps, FC<Partial<RadialGradientProps>>>
<RadialGradient />
isClosedCurveWhether the curve should be closed. Set to true by deafult
boolean
true

RadialLine (opens in a new tab)

PropDescriptionDefault
dataParsed data shape. Set internally by `RadialAreaChart`.
ChartInternalShallowDataShape[]
animatedWhether to animate the enter/update/exit. Set internally by `RadialAreaSeries`.
boolean
true
xScaleD3 scale for X Axis. Set internally by `RadialAreaChart`.
any
yScaleD3 scale for Y Axis. Set internally by `RadialAreaChart`.
any
colorColor for the area. Set internally by `RadialAreaSeries`.
any
interpolationInterpolation for the area. Set internally by `RadialAreaSeries`.
RadialInterpolationTypes
indexIndex of the area in the series. Set internally by `RadialAreaSeries`.
number
strokeWidthStroke width of the line.
number
2
classNameCSS classes to apply.
string
hasAreaInternal property to identify if there is a area or not.
boolean
isClosedCurveWhether the curve should be closed. Set to true by deafult
boolean
true

RadialPointSeries (opens in a new tab)

PropDescriptionDefault
animatedWhether the points are animated or not.
boolean
colorColor scheme.
any
indexIndex of the area in the series. Set internally by `RadialAreaSeries`.
number
activeValuesActive values set by parent.
any
dataParsed data object.
ChartInternalShallowDataShape[]
yScaleD3 X-Scale.
any
xScaleD3 Y-Scale.
any
showWhen to show the point.
boolean | "hover" | "first" | "last"
hover
pointPoint react component.
ReactElement<RadialScatterPointProps, FC<Partial<RadialScatterPointProps>>>
<RadialScatterPoint />