Overlay â
This document introduces the built-in overlays in the chart and how to customize a overlay.
Built-in overlay types â
horizontalRayLine
, horizontalSegment
, horizontalStraightLine
, verticalRayLine
, verticalSegment
, verticalStraightLine
, rayLine
, segment
, straightLine
, priceLine
, priceChannelLine
, parallelL
filineLine, ci
, simpleAnnotation
, simpleTag
Custom overlays â
To create custom an overlay, then add it globally via registerOverlay and add it to the chart to use it just like a built-in overlay. For more examples, refer to the files under https://github.com/klinecharts/KLineChart/tree/main/src/extension/overlay .