Documentation / @finchart/core / index / ValueCoordinates
Interface: ValueCoordinates
Defined in: packages/core/src/plot/capabilities.ts:248
Converts between this pane's screen y and its value. The value-side counterpart to XCoordinates.
yScale isn't handed over as-is because Scale has setDomain and setRange on it — if an extension could push the value axis around, this wouldn't be a coordinate converter anymore.
Consumers: @finchart/tools
Extended by
Properties
area
readonlyarea:PlotArea
Defined in: packages/core/src/plot/capabilities.ts:250
The space allotted to this pane. The basis for a hit test's "is this inside" question.
Methods
pixelAtValue()
pixelAtValue(
value):number
Defined in: packages/core/src/plot/capabilities.ts:254
The screen y (px) where a value lands.
Parameters
value
number
Returns
number
valueAt()
valueAt(
pixel):number
Defined in: packages/core/src/plot/capabilities.ts:252
The value at screen y (px).
Parameters
pixel
number
Returns
number