Skip to content

Documentation / @ripl/charts / areaCenter

Function: areaCenter() ​

areaCenter(area): AreaCenter

Defined in: charts/src/core/layout.ts:246

Computes the center point and inscribed size (the smaller of width and height) of a rectangular area: the shared basis for laying out radial and polar charts.

Parameters ​

ParameterType
areaChartArea

Returns ​

AreaCenter