charton API / @chart-on/core / index / levelLines
Function: levelLines()
levelLines(
ctx,env,levels,left,right,textStyle?,side?):void
Defined in: packages/core/src/drawing/draw.ts:295
Horizontal level lines from left to right with labels on side of them (left of left by default, or right of right), kept on screen and over the lines when there is no room outside. Labels that would overlap the previous one are skipped. Levels should be sorted by y. textStyle sets the labels' size, weight, slant and text color.
Parameters
ctx
CanvasRenderingContext2D
env
levels
readonly LevelLine[]
left
number
right
number
textStyle?
DrawingTextStyle = {}
side?
"left" | "right" | undefined
Returns
void