Skip to main content
Version: 5.0

Type alias: PriceToCoordinateConverter()

PriceToCoordinateConverter: (price) => Coordinate | null

Converter function for changing prices into vertical coordinate values.

This is provided as a convenience function since the series original data will most likely be defined in price values, and the renderer needs to draw with coordinates. This returns the same values as directly using the series' priceToCoordinate method.

Parameters

price: number

Returns

Coordinate | null