@chartspire/chartspire-chart 0.5.0 → 10.0.0-alpha2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,114 @@
1
+ <div align="center">
2
+ <a href="https://klinecharts.com">
3
+ <img src="https://klinecharts.com/images/logo.svg?hash=89987fs7789" height="100"/>
4
+ </a>
5
+ </div>
6
+ <h1 align="center">KLineChart</h1>
7
+
8
+ <div align="center">
9
+ 简体中文 | <a href="https://github.com/liihuu/KLineChart">English</a>
10
+ </div>
11
+ <br/>
12
+
13
+ <p align="center">💹📈 基于 html5 canvas 构建的轻量级金融图表。</p>
14
+ <div align="center">
15
+
16
+ [![GitHub Workflow Status (with branch)](https://img.shields.io/github/actions/workflow/status/liihuu/KLineChart/build.yml?logo=github)](https://github.com/liihuu/KLineChart/actions/workflows/build.yml)
17
+ [![Version](https://badgen.net/npm/v/klinecharts)](https://www.npmjs.com/package/klinecharts)
18
+ [![Size](https://badgen.net/bundlephobia/minzip/klinecharts@latest)](https://bundlephobia.com/result?p=klinecharts@latest)
19
+ [![npms.io (maintenance)](https://img.shields.io/npms-io/quality-score/klinecharts)](https://www.npmjs.com/package/klinecharts)
20
+ [![Typescript](https://badgen.net/npm/types/klinecharts)](types/index.d.ts)
21
+ [![LICENSE](https://badgen.net/github/license/liihuu/KLineChart)](LICENSE)
22
+ [![Docs](https://badgen.net/badge/docs%20by/vitepress/bd34fe)](https://vitepress.dev/)
23
+
24
+ </div>
25
+
26
+ <div align="center">
27
+
28
+ [![Issues](https://img.shields.io/static/v1?color=1f2328&logo=github&logoColor=fff&label&message=Github%20Issues)](https://github.com/liihuu/KLineChart/issues)
29
+ [![Discussions](https://img.shields.io/static/v1?color=1f2328&logo=github&logoColor=fff&label&message=Github%20Discussions)](https://github.com/liihuu/KLineChart/discussions)
30
+ [![Telegram](https://img.shields.io/static/v1?color=1296DB&logo=telegram&logoColor=fff&label&message=Telegram)](https://t.me/klinecharts)
31
+ [![Wechat](https://img.shields.io/static/v1?color=1EBE1F&logo=wechat&logoColor=fff&label&message=微信)](https://klinecharts.com/guide/feedback.html)
32
+ <!-- [![Discord](https://img.shields.io/static/v1?color=738BD8&logo=discord&logoColor=fff&label&message=Discord)](https://discord.gg/7YjHYgvvvZ) -->
33
+ <!-- [![Twitter](https://img.shields.io/static/v1?color=1D9BF0&logo=twitter&logoColor=fff&label&message=Twitter)](https://twitter.com/klinecharts) -->
34
+
35
+ </div>
36
+
37
+ <img src="https://cdn.nlark.com/yuque/0/2023/png/8403091/1684399506365-assets/web-upload/044fe897-168c-4fbb-a485-87a8ef61c04a.png" />
38
+
39
+ ## ✨ 特性
40
+ + 📦 **开箱即用:** 简单快速集成,基本零成本上手。
41
+ + 🚀 **轻量流畅:** 零依赖,Gzip压缩下仅40k。
42
+ + 💪 **功能强大:** 内置多种指标和画线模型。
43
+ + 🎨 **高可扩展:** 丰富的样式配置和API,功能扩展随心所欲。
44
+ + 📱 **移动端:** 支持移动端,一个图表,搞定多端。
45
+ + 🛡 **Typescript开发:** 提供完整的类型定义文件。
46
+
47
+ ## ⚡ 性能
48
+ 类似的图表进行性能比较。
49
+ + **测试场景:** 50000条数据,5个副图指标,执行10次取平均值
50
+ + **设备:** macOS Ventura, Apple M2 Pro, 16G
51
+ + **浏览器:** Chrome 114.0.5735.106
52
+ + **框架:** React@18.2.0
53
+
54
+ 从初始化到完全渲染,耗时对比:
55
+ | **klinecharts@9.4.0** | **night-vision@0.3.2** | **hqchart@1.1.12147** |
56
+ | :---: | :---: | :---: |
57
+ | 37ms | 36ms | 241ms |
58
+
59
+ ## 📦 安装
60
+ ### 使用 npm
61
+ ```bash
62
+ npm install klinecharts --save
63
+ ```
64
+
65
+ ### 使用 yarn
66
+ ```bash
67
+ yarn add klinecharts
68
+ ```
69
+
70
+ ### CDNs
71
+ #### [unpkg](https://unpkg.com)
72
+ ```html
73
+ <script type="text/javascript" src="https://unpkg.com/klinecharts/dist/klinecharts.min.js"></script>
74
+ ```
75
+
76
+ #### [jsDelivr](https://cdn.jsdelivr.net)
77
+ ```html
78
+ <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/klinecharts/dist/klinecharts.min.js"></script>
79
+ ```
80
+
81
+ ## 📄 文档
82
+ ### 在线文档
83
+ [https://www.klinecharts.com](https://www.klinecharts.com)
84
+
85
+ ### 本地浏览
86
+ 在根目录下执行命令,需要 [Node.js](https://nodejs.org) 环境。
87
+ ```bash
88
+ # 安装依赖
89
+ npm install
90
+
91
+ # 启动文档服务
92
+ npm run docs:dev
93
+ ```
94
+ 启动成功后,在浏览器中打开 http://localhost:8888。
95
+
96
+
97
+ ## 🛠️ 本地构建
98
+ 在根目录下执行命令,需要 [Node.js](https://nodejs.org) 环境。
99
+ ```bash
100
+ # 安装依赖
101
+ npm install
102
+
103
+ # 打包文件
104
+ npm run build
105
+ ```
106
+ 构建好的文件在`dist`文件夹。
107
+
108
+ ## 🔗 链接
109
+ + [在线预览](https://preview.klinecharts.com)
110
+ + [Pro版本](https://pro.klinecharts.com)
111
+ + [示例代码](https://github.com/liihuu/KLineChartSample)
112
+
113
+ ## ©️ License
114
+ Apache License V2.
package/dist/index.cjs ADDED
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license
3
+ * KLineChart v10.0.0-alpha2
4
+ * Copyright (c) 2019 lihu.
5
+ * Licensed under Apache License 2.0 https://www.apache.org/licenses/LICENSE-2.0
6
+ */
7
+ "use strict";"production"===process.env.NODE_ENV?module.exports=require("./umd/klinecharts.min.js"):module.exports=require("./umd/klinecharts.js");