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 ​
| Parameter | Type | Description |
|---|---|---|
type | SymbolType | The symbol shape. |
radius | number | The equal-area circle radius the symbol should visually match. |
Returns ​
number
The circumradius to assign to the symbol element.