getDataDomain<
T>(points,paddingRatio?):PlotDomain
Defined in: utils.ts:173
Calculates a padded domain from finite point coordinates.
When no finite values are available, the fallback range is 0 to 1 for each axis. When all values on an axis are equal, the range expands around that value.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
points | PlotPoint<T>[] | undefined | Data points used to calculate bounds. |
paddingRatio | number | 0.05 | Fraction of each axis range to add as padding. |
Returns
A padded plot domain.