Skip to content

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, parallelLfilineLine, 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 .