Skip to content

yProj

yProj(scale, plotArea, t?): (value) => number

Defined in: core/draw.ts:39

Build a value → y pixel projection for a vertical chart whose Y axis runs bottom→top across plotArea.h and matches scale.[min,max].

t is the animation progress (0 → 1). At t = 0 every projection collapses to the bottom of the plot area for a clean entry animation.

Parameters

scale

NiceScale

plotArea

PlotArea

t?

number = 1

Returns

(value) => number