Skip to content
Main Navigation Guide
Chart API
Instance API
ProPreviewCustomizeSponsor
9.x Docs
8.x Docs

🇬🇧 English

🇨🇳 简体中文

🇬🇧 English

🇨🇳 简体中文

Appearance

Sidebar Navigation

Started

Introduction

Quick Start

Basic

Style Configuration

Data Source

Internationalization

Environment

Hot Key

Advanced

Figure

Indicator

Overlay

Local Development

Others

9.x to 10.x

FAQ

Feedback

Changelog

On this page

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 .

Edit this page on GitHub

Last updated:

Pager
Previous pageIndicator
Next pageLocal Development

Released under the Apache License V2.

Copyright © 2018-2025 liihuu