项目 / klinecharts/KLineChart
klinecharts/KLineChart
行业候选
语言 TypeScript标签 klinetime-linecandlestickcanvasstockchartexchangefinanceklinechartstockcharttechnical-indicators数据更新 2026-11-25 06:49:28 · 仓库 2026-11-24
一段话介绍
📈Lightweight k-line chart that can be highly customized. Zero dependencies. Support mobile.(可高度自定义的轻量级k线图,无第三方依赖,支持移动端)
本站整理,非 GitHub 官方 description。
官方 description(GitHub API 原样)📈Lightweight k-line chart that can be highly customized. Zero dependencies. Support mobile.(可高度自定义的轻量级k线图,无第三方依赖,支持移动端)
4,327累计星
1,024Fork
—峰值日增
0上榜次数
官方快照(gh_history.db,2026-11-25):总榜 未进 Top50 · 日榜 未进 Top50 · 周榜未满 7 天基线(官方不生成) · 月榜暂无官方口径;下方四卡为站内趋势聚合(周卡按上榜次数,非官方 7 日增量窗)。
BI 可视化与自助分析
适配系统:BI/报表平台、自助分析平台 · 得分 1.2
提供图表渲染与自助取数能力,可作为业务看板与经营管理分析的展示层。
更多信息
以下三段按该项目自己的 GitHub README 章节摘录(可合理截断并标明);README 没有对应章节的留空,不编造。
我的用法
可通过 unpkg 或 jsdelivr 的 CDN 链接以 script 标签方式在网页中引入 klinecharts 的压缩版 JS 文件。
特点或设计要点
KLineChart 开箱即用、零依赖且 gzip 后仅约 50k,内置多种指标和画线模型,支持移动端并用 TypeScript 提供完整类型定义。
星标走势还差一天的数据,明天就能看到曲线
每天 10:30 记一次星标,连续两天后自动生成曲线
GitHub 项目主页介绍
来自 GitHub 仓库 README / 主页介绍正文,原样摘录,共 4,310 字节。
<div align="center">
<a href="https://klinecharts.com">
<img src="https://github.com/klinecharts/KLineChart/blob/main/logo.png?hash=8987632" height="100"/>
</a>
</div>
<h1 align="center">KLineChart</h1>
<div align="center">
English | <a href="https://github.com/liihuu/KLineChart/blob/main/README.zh-CN.md">简体中文</a>
</div>
<br/>
<p align="center">💹📈 Lightweight k-line chart built with html5 canvas.</p>
<div align="center">
[](https://github.com/liihuu/KLineChart/actions/workflows/build.yml)
[](https://www.npmjs.com/package/klinecharts)
[](https://bundlephobia.com/result?p=klinecharts@latest)
[](https://www.npmjs.com/package/klinecharts)
[](https://github.com/klinecharts/KLineChart)
[](LICENSE)
[](https://vitepress.dev/)
</div>
<div align="center">
[](https://github.com/liihuu/KLineChart/issues)
[](https://github.com/liihuu/KLineChart/discussions)
[](https://t.me/klinecharts)
[](https://klinecharts.com/en-US/guide/feedback.html)
<!-- [](https://discord.gg/7YjHYgvvvZ) -->
<!-- [](https://twitter.com/klinecharts) -->
</div>
<img style="margin-bottom:6px" src="https://cdn.nlark.com/yuque/0/2023/png/8403091/1684399506365-assets/web-upload/044fe897-168c-4fbb-a485-87a8ef61c04a.png" />
## ✨ Features
- 📦 **Out of the box:** Simple and fast integration, basically zero cost to get started.
- 🚀 **Lightweight and smooth:** Zero dependencies, only 50k 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
```bash
npm install klinecharts --save
```
### Using yarn
```bash
yarn add klinecharts
```
### CDNs
#### [unpkg](https://unpkg.com)
```html
<script type="text/javascript" src="https://unpkg.com/klinecharts/dist/klinecharts.min.js"></script>
```
#### [jsDelivr](https://cdn.jsdelivr.net)
```html
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/klinecharts/dist/klinecharts.min.js"></script>
```
## 📄 Docs
### Online
[https://www.klinecharts.com](https://www.klinecharts.com)
### Locale
Execute command in root directory. [Node.js](https://nodejs.org) is required.
```bash
# 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](https://nodejs.org) is required.
```bash
# Install the dependencies
pnpm install
# Build files
pnpm run build
```
The generated files are in the dist folder.
## 🔗 Links
+ [KLineChart Preview](https://preview.klinecharts.com): A more complete example.
+ [KLineChart Pro](https://pro.klinecharts.com): Financial chart built out of the box based on KLineChart.
+ [openctp](https://github.com/openctp/openctp): Trading simulation environment for the Chinese market.
## ©️ License
KLineChart is available under the Apache License V2.