klinecharts/KLineChart

TypeScriptklinecharts.com

📈Lightweight k-line chart that can be highly customized. Zero dependencies. Support mobile.(可高度自定义的轻量级k线图,无第三方依赖,支持移动端)

klinetime-linecandlestickcanvasstockchartexchangefinanceklinechartstockcharttechnical-indicators
スター成長
スター
4.1k
フォーク
995
週間成長
+18
Issue
27
2k4k
2023年9月2024年9月2025年9月2026年9月
成果物npm
README

KLineChart

English | 简体中文

💹📈 Lightweight k-line chart built with html5 canvas.

GitHub Workflow Status (with branch) Version Size npms.io (maintenance) Typescript LICENSE Docs

Issues Discussions Telegram Wechat

✨ Features

  • 📦 Out of the box: Simple and fast integration, basically zero cost to get started.
  • 🚀 Lightweight and smooth: Zero dependencies, only 40k under gzip compression.
  • 💪 Powerful functions: Built-in multiple indicators and line drawing models.
  • 🎨 Highly scalable: With rich style configuration and API, the function can be extended as you like.
  • 📱 Mobile: Support mobile, one chart, handle multiple terminals.
  • 🛡 Typescript development: Provide complete type definition files.

📦 Install

Using npm

npm install klinecharts --save

Using yarn

yarn add klinecharts

CDNs

unpkg

<script type="text/javascript" src="https://unpkg.com/klinecharts/dist/klinecharts.min.js"></script>

jsDelivr

<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/klinecharts/dist/klinecharts.min.js"></script>

📄 Docs

Online

https://www.klinecharts.com

Locale

Execute command in root directory. Node.js is required.

# Install the dependencies
pnpm install

# Start document service
pnpm run docs:dev

After successful startup, open in the browser http://localhost:8888 .

🛠️ Build

Execute command in root directory. Node.js is required.

# Install the dependencies
pnpm install

# Build files
pnpm run build

The generated files are in the dist folder.

©️ License

KLineChart is available under the Apache License V2.

関連リポジトリ
1nchaos/adata

免费开源A股量化交易数据库; 专注A股,专注量化,向阳而生; 开放、纯净、持续、为Ai(爱)发电。为个人量化交易而生,保卫3000点,珍惜底部机会......【股票数据,股票行情数据,股票量化数据,股票交易数据,k线行情数据,股票概念数据,股票数据接口,行情数据接口,量化交易数据】【多数据源融合,动态设置代理,保障数据高可用性】

PythonPyPIlibraryApache License 2.0stocka
adata.30006124.xyz
5.2k693
jones2000/HQChart

HQChart - H5, 微信小程序 沪深/港股/数字货币/期货/美股 K线图(kline),走势图,缩放,拖拽,十字光标,画图工具,截图,筹码图. 分析家语法,通达信语法,(麦语法),第3方数据替换接口

JavaScriptnpmlibraryApache License 2.0candlestick-chartchina-stock
jones2000.github.io/HQChart/webhqchart.demo/samples/kline_index_edit.html
3.4k835
hello245m/free-stockdb

面向 A 股日K、分钟K与ETF分钟数据的本地量化引擎,集成增量同步、本地缓存、复权、批量查询、回测与指标计算。

HTMLMIT Licensea-sharealgorithmic-trading
2.5k376
WillkYang/YYKline

iOS YYKline:Kline、Chart、Volume、Scroll、Scale、MACD、KDJ、K线图、分时图...

Objective-ClibraryMIT Licenseklinestock
2.5k539
sevtin/KSChart

k线图/kline/kchart,已经集成MA/EMA/MACD/KDJ/BOLL/RSI/WR/AVG等指标,新增指标及其方便。适用于股票/区块链交易所等种类App。Swift5编写,CPU/内存占用率极低,60FPS稳定运行。示例集成websocket,并接入币安数据(需VPN)。

SwiftMIT Licenseklineshare
1.1k132
tifezh/KChartView

KChart for Android ;股票k线图

JavaMavenlibraryApache License 2.0klinecharts
1k241
herbsun/OKKLineSwift

Draw the K-Line by Swift, support iOS & macOS

Swiftstockmacos
41576