Skip to content

Documentation / @ripl/charts / symbolRadius

Function: symbolRadius() ​

symbolRadius(type, radius): number

Defined in: charts/src/components/symbols.ts:49

The circumradius a symbol element needs to match the visual area of a circle of the given radius. Hosts animating a marker's radius should animate towards this value.

Parameters ​

ParameterTypeDescription
typeSymbolTypeThe symbol shape.
radiusnumberThe equal-area circle radius the symbol should visually match.

Returns ​

number

The circumradius to assign to the symbol element.