jmchart 1.1.79 → 1.1.90
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.
- package/README.md +30 -28
- package/build.js +35 -35
- package/dist/jmchart.amd.js +700 -444
- package/dist/jmchart.cjs.js +699 -443
- package/dist/jmchart.esm.js +699 -444
- package/dist/jmchart.iife.js +701 -443
- package/dist/jmchart.system.js +699 -443
- package/example/bar.html +180 -180
- package/example/candlestick.html +288 -0
- package/example/index.html +294 -0
- package/example/js/vconsole.js +10 -0
- package/example/line.html +300 -297
- package/example/pie.html +353 -353
- package/example/stackBar.html +142 -142
- package/example/stackLine.html +147 -147
- package/example/test.html +40 -40
- package/example/vue.html +322 -322
- package/example/wk/line.html +314 -312
- package/index.js +8 -8
- package/package.json +42 -42
- package/rollup.config.js +26 -26
- package/server.js +45 -45
- package/src/common/style.js +259 -242
- package/src/common/tooltip.js +165 -165
- package/src/common/utils.js +21 -21
- package/src/component/vchart.js +130 -130
- package/src/core/axis/axis.js +622 -622
- package/src/core/legend/legend.js +163 -163
- package/src/core/markLine/manager.js +152 -0
- package/src/core/{axis → markLine}/markLine.js +190 -190
- package/src/jmChart.js +416 -464
- package/src/series/barSeries.js +135 -135
- package/src/series/candlestickSeries.js +114 -0
- package/src/series/lineSeries.js +243 -243
- package/src/series/pieSeries.js +350 -350
- package/src/series/series.js +397 -396
- package/src/series/stackBarSeries.js +144 -144
- package/src/series/stackLineSeries.js +145 -145
package/README.md
CHANGED
|
@@ -1,28 +1,30 @@
|
|
|
1
|
-
jmchart
|
|
2
|
-
=======
|
|
3
|
-
|
|
4
|
-
html5图表控件
|
|
5
|
-
|
|
6
|
-
线条[http://jiamao.github.io/jmchart/example/line.html]
|
|
7
|
-
|
|
8
|
-
柱图[http://jiamao.github.io/jmchart/example/bar.html]
|
|
9
|
-
|
|
10
|
-
饼图[http://jiamao.github.io/jmchart/example/pie.html]
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
npm
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
|
|
1
|
+
jmchart 轻量级图表组件(支持微信小程序)
|
|
2
|
+
=======
|
|
3
|
+
|
|
4
|
+
html5图表控件
|
|
5
|
+
|
|
6
|
+
线条[http://jiamao.github.io/jmchart/example/line.html]
|
|
7
|
+
|
|
8
|
+
柱图[http://jiamao.github.io/jmchart/example/bar.html]
|
|
9
|
+
|
|
10
|
+
饼图[http://jiamao.github.io/jmchart/example/pie.html]
|
|
11
|
+
|
|
12
|
+
K线[http://jiamao.github.io/jmchart/example/candlestick.html]
|
|
13
|
+
|
|
14
|
+
stackBar[http://jiamao.github.io/jmchart/example/stackBar.html]
|
|
15
|
+
|
|
16
|
+
stackLine[http://jiamao.github.io/jmchart/example/stackLine.html]
|
|
17
|
+
|
|
18
|
+
vue[http://jiamao.github.io/jmchart/example/vue.html]
|
|
19
|
+
|
|
20
|
+
微信小程序[https://github.com/jiamao/mini-jmchart]
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
安装
|
|
24
|
+
---
|
|
25
|
+
如需要构建,直接在项目录下执行`npm run build`即可。
|
|
26
|
+
```shell
|
|
27
|
+
npm install jmchart
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
> 如果你想引用不同的类型的模块,请见`dist`目录。1
|
package/build.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
const rollup = require('rollup');
|
|
3
|
-
const rollupOptions = require('./rollup.config.js');
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* format
|
|
7
|
-
amd – 异步模块定义,用于像RequireJS这样的模块加载器
|
|
8
|
-
cjs – CommonJS,适用于 Node 和 Browserify/Webpack
|
|
9
|
-
esm – 将软件包保存为 ES 模块文件,在现代浏览器中可以通过 <script type=module> 标签引入
|
|
10
|
-
iife – 一个自动执行的功能,适合作为<script>标签。(如果要为应用程序创建一个捆绑包,您可能想要使用它,因为它会使文件大小变小。)
|
|
11
|
-
umd – 通用模块定义,以amd,cjs 和 iife 为一体
|
|
12
|
-
system - SystemJS 加载器格式
|
|
13
|
-
*/
|
|
14
|
-
async function build(format = 'cjs') {
|
|
15
|
-
const bundle = await rollup.rollup(rollupOptions);
|
|
16
|
-
|
|
17
|
-
const outputOptions = Object.assign(rollupOptions.output, {
|
|
18
|
-
file: `./dist/jmchart.${format}.js`,
|
|
19
|
-
format
|
|
20
|
-
})
|
|
21
|
-
const { code, map } = await bundle.generate(rollupOptions.output);
|
|
22
|
-
|
|
23
|
-
await bundle.write(outputOptions);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
build('cjs');
|
|
27
|
-
|
|
28
|
-
build('esm');
|
|
29
|
-
|
|
30
|
-
build('iife');
|
|
31
|
-
|
|
32
|
-
build('amd');
|
|
33
|
-
|
|
34
|
-
//build('umd');
|
|
35
|
-
|
|
1
|
+
|
|
2
|
+
const rollup = require('rollup');
|
|
3
|
+
const rollupOptions = require('./rollup.config.js');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* format
|
|
7
|
+
amd – 异步模块定义,用于像RequireJS这样的模块加载器
|
|
8
|
+
cjs – CommonJS,适用于 Node 和 Browserify/Webpack
|
|
9
|
+
esm – 将软件包保存为 ES 模块文件,在现代浏览器中可以通过 <script type=module> 标签引入
|
|
10
|
+
iife – 一个自动执行的功能,适合作为<script>标签。(如果要为应用程序创建一个捆绑包,您可能想要使用它,因为它会使文件大小变小。)
|
|
11
|
+
umd – 通用模块定义,以amd,cjs 和 iife 为一体
|
|
12
|
+
system - SystemJS 加载器格式
|
|
13
|
+
*/
|
|
14
|
+
async function build(format = 'cjs') {
|
|
15
|
+
const bundle = await rollup.rollup(rollupOptions);
|
|
16
|
+
|
|
17
|
+
const outputOptions = Object.assign(rollupOptions.output, {
|
|
18
|
+
file: `./dist/jmchart.${format}.js`,
|
|
19
|
+
format
|
|
20
|
+
})
|
|
21
|
+
const { code, map } = await bundle.generate(rollupOptions.output);
|
|
22
|
+
|
|
23
|
+
await bundle.write(outputOptions);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
build('cjs');
|
|
27
|
+
|
|
28
|
+
build('esm');
|
|
29
|
+
|
|
30
|
+
build('iife');
|
|
31
|
+
|
|
32
|
+
build('amd');
|
|
33
|
+
|
|
34
|
+
//build('umd');
|
|
35
|
+
|
|
36
36
|
build('system');
|