klinecharts/KLineChart
klinecharts/KLineChart has 4,296 GitHub stars and 1,015 forks. GitHot measured -1 stars in 24 hours. Last checked 2026-11-07 16:27 UTC. Last push 2026-10-29.
📈Lightweight k-line chart that can be highly customized. Zero dependencies. Support mobile.(可高度自定义的轻量级k线图,无第三方依赖,支持移动端)
What you can do
- 📦 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.
Measured star growth
- in 24h
- -1
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalKLineChart
💹📈 Lightweight k-line chart built with html5 canvas.

✨ 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
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
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.
🔗 Links
- KLineChart Preview: A more complete example.
- KLineChart Pro: Financial chart built out of the box based on KLineChart.
- openctp: Trading simulation environment for the Chinese market.
©️ License
KLineChart is available under the Apache License V2.
Explore related projects
freeCodeCamp/freeCodeCamp
freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.
458,721 starsdonnemartin/system-design-primer
Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.
377,262 starsreact/react
The library for web and native user interfaces.
252,365 starsvuejs/vue
This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
212,631 stars