Selaa lähdekoodia

add:含水图&精灵图

feat/pictorialBar
hanke 1 vuosi sitten
vanhempi
commit
28d82f5c78
29 muutettua tiedostoa jossa 5190 lisäystä ja 12 poistoa
  1. 6
    0
      config/config.js
  2. 6
    11
      package.json
  3. 5
    1
      src/chart/echarts/CustomChartBar/CustomChartBar.js
  4. 142
    0
      src/chart/echarts/CustomSpirits/CustomSpirits.js
  5. 19
    0
      src/chart/echarts/CustomSpirits/config/dataConfig.js
  6. 1071
    0
      src/chart/echarts/CustomSpirits/config/styleConfig.js
  7. 6
    0
      src/chart/echarts/CustomSpirits/config/symbols.js
  8. 193
    0
      src/chart/echarts/CustomWaterContent/CustomWaterContent.js
  9. 160
    0
      src/chart/echarts/CustomWaterContent/config/chartData.js
  10. 31
    0
      src/chart/echarts/CustomWaterContent/config/dataConfig.js
  11. 1341
    0
      src/chart/echarts/CustomWaterContent/config/styleConfig.js
  12. 189
    0
      src/chart/echarts/Demo/demo.js
  13. 105
    0
      src/chart/echarts/commonOptions/animation.js
  14. 488
    0
      src/chart/echarts/commonOptions/axis.js
  15. 194
    0
      src/chart/echarts/commonOptions/axis_polar.js
  16. 12
    0
      src/chart/echarts/commonOptions/bg.js
  17. 131
    0
      src/chart/echarts/commonOptions/dataZoom.js
  18. 114
    0
      src/chart/echarts/commonOptions/grid.js
  19. 150
    0
      src/chart/echarts/commonOptions/legend.js
  20. 111
    0
      src/chart/echarts/commonOptions/title.js
  21. 108
    0
      src/chart/echarts/commonOptions/tooltip.js
  22. 116
    0
      src/utils/index.js
  23. 112
    0
      test/echarts/CustomSpirits/CustomSpirits.js
  24. 112
    0
      test/echarts/CustomSpirits/chartData.js
  25. 26
    0
      test/echarts/CustomSpirits/index.html
  26. 38
    0
      test/echarts/CustomSpirits/index.js
  27. 160
    0
      test/echarts/CustomWaterContent/chartData.js
  28. 26
    0
      test/echarts/CustomWaterContent/index.html
  29. 18
    0
      test/echarts/CustomWaterContent/index.js

+ 6
- 0
config/config.js Näytä tiedosto

@@ -122,6 +122,12 @@ if (process.env.NODE_ENV === "noThird") {
122 122
             commonjs2: 'gsap',
123 123
             amd: 'gsap',
124 124
             root: 'gsap'
125
+        },
126
+        'echarts': {
127
+            commonjs: 'echarts',
128
+            commonjs2: 'echarts',
129
+            amd: 'echarts',
130
+            root: 'echarts'
125 131
         }
126 132
     };
127 133
 } else {

+ 6
- 11
package.json Näytä tiedosto

@@ -7,7 +7,8 @@
7 7
     "clear": "npm cache clean --force",
8 8
     "dll": "webpack --config config/webpack.dll.config.js --progress --colors",
9 9
     "dev": "webpack-dev-server --config config/webpack.dev.config.js --progress --colors",
10
-    "dist": "cross-env NODE_ENV=third ./node_modules/.bin/webpack --config config/webpack.dist.config.js --display-error-details --progress --colors"
10
+    "dist": "cross-env NODE_ENV=third ./node_modules/.bin/webpack --config config/webpack.dist.config.js --display-error-details --progress --colors",
11
+    "dist-noThird": "cross-env NODE_ENV=noThird ./node_modules/.bin/webpack --config config/webpack.dist.config.js --display-error-details --progress --colors"
11 12
   },
12 13
   "repository": {
13 14
     "type": "git",
@@ -19,13 +20,7 @@
19 20
   "author": "丁月明",
20 21
   "license": "ISC",
21 22
   "dependencies": {
22
-    "gsap": "^1.20.2",
23
-    "jquery": "^3.5.1",
24
-    "three": "^0.110.0",
25
-    "three-obj-loader": "^1.1.3",
26
-    "three-orbitcontrols": "^2.1.1",
27
-    "three-stats": "^1.0.1",
28
-    "zrender": "^4.2.0"
23
+    "echarts": "^5.4.2"
29 24
   },
30 25
   "devDependencies": {
31 26
     "babel-core": "^6.26.3",
@@ -37,18 +32,18 @@
37 32
     "css-loader": "^2.1.0",
38 33
     "file-loader": "^3.0.1",
39 34
     "glob": "^7.1.3",
35
+    "glslify-loader": "^2.0.0",
40 36
     "happypack": "^5.0.1",
41 37
     "html-webpack-plugin": "^3.2.0",
42 38
     "json-loader": "^0.5.7",
43 39
     "optimize-css-assets-webpack-plugin": "^5.0.1",
40
+    "raw-loader": "^3.0.0",
44 41
     "style-loader": "^0.23.1",
45 42
     "uglifyjs-webpack-plugin": "^2.1.1",
46 43
     "url-loader": "^0.5.8",
47 44
     "webpack": "^4.28.3",
48 45
     "webpack-cli": "^3.2.0",
49 46
     "webpack-dev-server": "^3.1.14",
50
-    "webpack-glsl-loader": "^1.0.1",
51
-    "glslify-loader": "^2.0.0",
52
-    "raw-loader": "^3.0.0"
47
+    "webpack-glsl-loader": "^1.0.1"
53 48
   }
54 49
 }

+ 5
- 1
src/chart/echarts/CustomChartBar/CustomChartBar.js Näytä tiedosto

@@ -1,11 +1,14 @@
1 1
 import utils from 'utils/index.js';
2
-import echarts from '../echarts.min.js';
2
+import * as echarts from 'echarts';
3
+// import * as echarts from 'echarts/core';
3 4
 
4 5
 import styleConfig from './config/styleConfig';
5 6
 import dataConfig from './config/dataConfig';
6 7
 
7 8
 export default class CustomChartBar{
8 9
     constructor(dom, opts){
10
+        console.log('dom', dom)
11
+        console.log('opts', opts)
9 12
         opts = opts || {};
10 13
         if(opts.getConfig === true){
11 14
             return;
@@ -99,6 +102,7 @@ export default class CustomChartBar{
99 102
     }
100 103
 
101 104
     resize(){
105
+        // this.chart && this.chart.setOption && this.chart.setOption(this.opts)
102 106
         this.chart.resize();
103 107
     }
104 108
 

+ 142
- 0
src/chart/echarts/CustomSpirits/CustomSpirits.js Näytä tiedosto

@@ -0,0 +1,142 @@
1
+import utils from "utils/index.js";
2
+import * as echarts from "echarts";
3
+// import * as echarts from 'echarts/core';
4
+
5
+import styleConfig from "./config/styleConfig";
6
+import dataConfig from "./config/dataConfig";
7
+import symbols from "./config/symbols";
8
+
9
+console.log('styleConfig===========', styleConfig)
10
+
11
+export default class CustomSpirits {
12
+  constructor(dom, opts) {
13
+    opts = opts || {};
14
+    if (opts.getConfig === true) {
15
+      return;
16
+    }
17
+
18
+    this.chart = null;
19
+    this._dom = dom;
20
+
21
+    this.init(opts);
22
+  }
23
+
24
+  init(opts) {
25
+    this.chart = echarts.init(this._dom);
26
+    this.chart.setOption(opts);
27
+  }
28
+
29
+  setOption(opts, data) {
30
+    // this.chart.setOption(this.mergeOption(opts, data), {notMerge:true});
31
+    this.chart.setOption(opts, { notMerge: true });
32
+  }
33
+
34
+  // mergeOption(style, dataConfig){
35
+  //     style = utils.deepCopy(style);
36
+  //     style.xAxis.data = dataConfig.defaultData[dataConfig.configList[0].defaultKey];
37
+  //     style.color = style.color.color;
38
+  //     style.yAxis = {
39
+  //         type:'value'
40
+  //     }
41
+
42
+  //     style.series = [];
43
+  //     let series = dataConfig.configList[1].defaultKey;
44
+  //     if(Array.isArray(series) === true){
45
+  //         series.forEach( item => {
46
+  //             style.series.push({
47
+  //                 data:dataConfig.defaultData[item],
48
+  //                 type:'bar'
49
+  //             })
50
+  //         })
51
+  //     }else{
52
+  //         style.series = [
53
+  //             {
54
+  //               data: dataConfig.defaultData[series],
55
+  //               type: 'bar'
56
+  //             }
57
+  //           ]
58
+  //     }
59
+
60
+  //     return style;
61
+  // }
62
+
63
+  getConfig() {
64
+    return {
65
+      styleConfig: utils.deepCopy(styleConfig),
66
+      dataConfig: utils.deepCopy(dataConfig),
67
+      fun: {
68
+        getColName: this.getColName,
69
+        themeMerge: this.themeMerge,
70
+        insertTheme:function(config,curTheme){
71
+          config = utils.insertCommonTheme(config,curTheme)
72
+          // config.shape.sub.label.sub.textStyle.sub.color.defaultValue = curTheme.theme.textColor;
73
+          // config.shape.sub.topList.sub.titleColor.defaultValue = curTheme.theme.titleColor;
74
+          return config;
75
+      },
76
+      },
77
+    };
78
+  }
79
+  themeMerge(styleConfig, dataConfig) {
80
+    let style = utils.deepCopy(styleConfig);
81
+    style.yAxis.data = dataConfig.yAxis[0].data;
82
+    style.color = style.color.color;
83
+
84
+    style.series = [];
85
+    let series = dataConfig.series;
86
+    if (Array.isArray(series) === true) {
87
+      console.log("series=====", series);
88
+      series.forEach((item, index) => {
89
+        const pushItem = {
90
+          data: item.data,
91
+          type: "pictorialBar",
92
+          symbolBoundingData: styleConfig.customSeries.symbolBoundingData,
93
+          symbolMargin: styleConfig.customSeries.symbolMargin,
94
+          symbolRepeat: styleConfig.customSeries.symbolRepeat,
95
+          symbolSize: styleConfig.customSeries.symbolSize,
96
+        };
97
+
98
+        if (index === 0) {
99
+          style.series.push(
100
+            Object.assign(pushItem, {
101
+              symbol: symbols[0],
102
+              symbolClip: styleConfig.customSeries.symbolClip,
103
+              z: 10,
104
+              markLine: styleConfig.customSeries.markLine,
105
+            })
106
+          );
107
+        }
108
+        if (index === 1) {
109
+          style.series.push(
110
+            Object.assign(pushItem, {
111
+              symbol: symbols[1],
112
+              itemStyle: styleConfig.customSeries.itemStyle,
113
+              label: styleConfig.customSeries.label,
114
+              animationDuration: 0,
115
+              z: 5,
116
+            })
117
+          );
118
+        }
119
+      });
120
+    }
121
+    return style;
122
+  }
123
+
124
+  getColName(dataConfig) {
125
+    let column = {};
126
+    dataConfig = JSON.parse(JSON.stringify(dataConfig));
127
+    let dataConfigKey = dataConfig.configList;
128
+    column.yAxis = [dataConfigKey[0].defaultKey];
129
+    column.series = dataConfigKey[1].defaultKey;
130
+    return column;
131
+  }
132
+
133
+  resize() {
134
+    console.log("resize2");
135
+    // this.chart && this.chart.setOption && this.chart.setOption(this.opts)
136
+    this.chart.resize();
137
+  }
138
+
139
+  dispose() {
140
+    this.chart.dispose();
141
+  }
142
+}

+ 19
- 0
src/chart/echarts/CustomSpirits/config/dataConfig.js Näytä tiedosto

@@ -0,0 +1,19 @@
1
+const dataConfig = {
2
+    configList:[{
3
+        name:'分类名称',
4
+        type:'yAxis',
5
+        comType:'single',
6
+        defaultKey:'年份'
7
+    },{
8
+        name:'数值名称',
9
+        type:'series',
10
+        comType:'multi',
11
+        defaultKey:['a','b']
12
+    }],
13
+    defaultData:{
14
+        '年份':  ['2013', '2014', '2015', '2016'],
15
+        "a": [891, 1220, 660, 1670],
16
+        "b": [891, 1220, 660, 1670],
17
+    }   
18
+}
19
+export default dataConfig;

+ 1071
- 0
src/chart/echarts/CustomSpirits/config/styleConfig.js
File diff suppressed because it is too large
Näytä tiedosto


+ 6
- 0
src/chart/echarts/CustomSpirits/config/symbols.js
File diff suppressed because it is too large
Näytä tiedosto


+ 193
- 0
src/chart/echarts/CustomWaterContent/CustomWaterContent.js Näytä tiedosto

@@ -0,0 +1,193 @@
1
+import utils from "utils/index.js";
2
+import * as echarts from "echarts";
3
+
4
+import styleConfig from "./config/styleConfig";
5
+import dataConfig from "./config/dataConfig";
6
+
7
+console.log("styleConfig-ttt", styleConfig);
8
+console.log("dataConfig-ttt", dataConfig);
9
+
10
+const symbols = [
11
+  "path://M36.7,102.84c-1.17,2.54-2.99,4.98-3.39,7.63c-1.51,9.89-3.31,19.58-1.93,29.95 c0.95,7.15-2.91,14.82-3.57,22.35c-0.64,7.36-0.2,14.86,0.35,22.25c0.12,1.68,2.66,3.17,4.67,5.4c-0.6,0.82-1.5,2.22-2.58,3.48 c-0.96,1.12-1.96,2.35-3.21,3.04c-1.71,0.95-3.71,2.03-5.51,1.9c-1.18-0.08-3.04-2.13-3.16-3.43c-0.44-4.72,0-9.52-0.41-14.25 c-0.94-10.88-2.32-21.72-3.24-32.61c-0.49-5.84-1.63-12.01-0.35-17.54c3.39-14.56,2.8-28.84,0.36-43.4 c-2.71-16.16-1.06-32.4,0.54-48.59c0.91-9.22,4.62-17.36,8.53-25.57c1.32-2.77,1.88-6.84,0.87-9.62C21.89-3.77,18.09-11,14.7-18.38 c-0.56,0.1-1.13,0.21-1.69,0.31C10.17-11.52,6.29-5.2,4.71,1.65C2.05,13.21-4.42,22.3-11.43,31.28c-1.32,1.69-2.51,3.5-3.98,5.04 c-4.85,5.08-3.25,10.98-2.32,16.82c0.25,1.53,0.52,3.06,0.77,4.59c-0.53,0.22-1.07,0.43-1.6,0.65c-1.07-2.09-2.14-4.19-3.28-6.44 c-6.39,2.91-2.67,9.6-5.23,15.16c-1.61-3.31-2.77-5.68-3.93-8.06c0-0.33,0-0.67,0-1c6.96-16.08,14.63-31.9,20.68-48.31 C-5.24-4.07-2.03-18.55,2-32.73c0.36-1.27,0.75-2.53,0.98-3.82c1.36-7.75,4.19-10.23,11.88-10.38c1.76-0.04,3.52-0.21,5.76-0.35 c-0.55-3.95-1.21-7.3-1.45-10.68c-0.61-8.67,0.77-16.69,7.39-23.19c2.18-2.14,4.27-4.82,5.25-7.65c2.39-6.88,11.66-9,16.94-8.12 c5.92,0.99,12.15,7.93,12.16,14.12c0.01,9.89-5.19,17.26-12.24,23.68c-2.17,1.97-5.35,4.77-5.17,6.94c0.31,3.78,4.15,5.66,8.08,6.04 c1.82,0.18,3.7,0.37,5.49,0.1c5.62-0.85,8.8,2.17,10.85,6.73C73.38-27.19,78.46-14.9,84.2-2.91c1.52,3.17,4.52,5.91,7.41,8.09 c7.64,5.77,15.57,11.16,23.45,16.61c2.28,1.58,4.64,3.23,7.21,4.14c5.18,1.84,8.09,5.63,9.82,10.46c0.45,1.24,0.19,3.71-0.6,4.18 c-1.06,0.63-3.15,0.27-4.44-0.38c-7.05-3.54-12.84-8.88-19.14-13.5c-3.5-2.57-7.9-4-12.03-5.6c-9.44-3.66-17.73-8.42-22.5-18.09 c-2.43-4.94-6.09-9.27-9.69-14.61c-1.2,10.98-4.46,20.65,1.14,31.19c6.62,12.47,5.89,26.25,1.21,39.49 c-2.52,7.11-6.5,13.74-8.67,20.94c-1.91,6.33-2.2,13.15-3.23,19.75c-0.72,4.63-0.84,9.48-2.36,13.84 c-2.49,7.16-6.67,13.83-5.84,21.82c0.42,4.02,1.29,7.99,2.1,12.8c-3.74-0.49-7.47-0.4-10.67-1.66c-1.33-0.53-2.43-4.11-2.07-6.01 c1.86-9.94,3.89-19.69,0.07-29.74C34.55,108.63,36.19,105.52,36.7,102.84c1.25-8.45,2.51-16.89,3.71-24.9 c-0.83-0.58-0.85-0.59-0.87-0.61c-0.03,0.16-0.07,0.32-0.09,0.48C38.53,86.15,37.62,94.5,36.7,102.84z",
12
+  "path://M40.02-99c2.07,1.21,4.26,2.25,6.19,3.66c5.94,4.34,8.23,12.57,4.95,19.79 c-3.21,7.08-6.82,14.03-10.86,20.67c-2.17,3.56-1.25,5.38,1.99,6.36c2.94,0.89,6.36,1.91,9.15,1.21c5.51-1.4,8.33,1.23,10.66,5.29 c4.71,8.22,9.72,16.29,13.84,24.8C81.06-6.65,89,0.4,99.56,5.17C109.82,9.8,120,14.7,129.85,20.15c4.72,2.61,9.09,6.37,10.24,12.97 c-2.89-1.93-5.2-3.75-7.78-5.04c-0.99-0.5-2.6,0.22-4.83,0.5c-5.36-9.35-16.8-9.4-26.74-12.62C91.68,13.04,81.82,11.37,75.66,3 c-5.98-8.13-11.61-16.52-17.4-24.79c-0.46-0.66-0.98-1.27-1.66-2.16c-3.21,7.75-6.78,15-9.12,22.63c-1.15,3.76-0.64,8.37,0.26,12.33 c0.81,3.59,3.01,6.92,4.87,10.22c6.73,11.95,2.41,22.89-2.91,33.75c-0.35,0.72-0.86,1.43-1.46,1.97 c-7.11,6.38-14.48,12.5-21.24,19.22c-2.08,2.07-3.1,5.7-3.62,8.77c-1.92,11.44-3.81,22.92-4.93,34.46 c-0.5,5.16,1.06,10.49,1.28,15.75c0.23,5.7,0.39,11.47-0.15,17.13c-1.15,12.11-2.83,24.17-4.11,36.27c-0.18,1.72,0.8,3.53,1.13,5.33 c0.88,4.76-0.22,6.23-4.71,5.17c-4.53-1.06-8.86-2.94-14.27-4.8c1.98-1.62,2.84-2.83,3.94-3.12c5.42-1.44,7-5.2,6.39-10.23 c-1.39-11.39-3.15-22.73-4.24-34.14c-0.53-5.56,0.16-11.23,0.24-16.85c0.06-4.49,0.01-8.97,0.01-14.72 c-2.79,1.53-5.2,2.27-6.79,3.83c-4.26,4.19-8.39,8.56-12.11,13.22c-1.55,1.95-2.19,4.76-2.79,7.29c-0.47,1.99,0.6,5.02-0.48,6.05 c-2.17,2.08-5.2,3.79-8.13,4.38c-3.61,0.73-7.49,0.18-12.26,0.18c6.34-8.69,11.91-16.11,17.22-23.71c3.29-4.71,6.23-9.67,9.24-14.58 c2.15-3.5,3.76-7.4,6.3-10.57c5.38-6.73,6.74-14.28,6.72-22.64C0.88,68.3,1.36,57.91,2.26,47.58c0.69-7.85,2.15-15.67,3.7-23.41 c0.77-3.83,2.89-7.39,3.72-11.22c1.83-8.4-1.9-16-4.38-23.95C2.96-5.34-0.31,0.12-1.5,6c-1.96,9.72-7.34,17.44-12.26,25.57 c-4.39,7.25-8.79,14.52-12.75,22.01c-2.64,5-4.5,10.41-6.83,15.92c-4.82-5.28-4.65-10.59-0.94-16.97 C-21.4,30.4-12.08,6.78-6.17-18.12c1.4-5.88,1.24-12.11,2.23-18.12c1.2-7.27,4.15-9.56,11.39-9.69c8.65-0.14,13.86-4.77,14.48-13.51 c0.35-5.01,0.16-10.11-0.28-15.12c-0.82-9.3,2.49-16.57,10.17-21.69c2.08-1.39,4.78-1.87,7.2-2.76C39.35-99,39.69-99,40.02-99z",
13
+  "path://M-39,33.03c3.72-9.74,12.97-12.87,20.96-17.43c9.51-5.43,19.2-10.54,28.69-16 c1.77-1.02,3.35-2.85,4.33-4.67C21.44-17,27.82-28.95,33.95-41.04c2.13-4.2,4.95-6.01,9.7-6.09c3.68-0.06,7.52-0.92,10.97-2.25 c5.09-1.95,4.85-5.2,1.1-9.01c-5.12-5.21-10.89-10.1-13.23-17.54c-1.71-5.44,0.78-15.62,4.87-18.74 c4.12-3.15,12.55-3.84,16.69-0.12c3.39,3.04,6.44,7.27,7.8,11.56c1.96,6.16,3.31,12.9,2.99,19.29 c-0.45,9.21,6.35,16.71,15.73,16.97c7.94,0.21,9.27,0.78,10.69,8.61c5.23,28.73,19.4,53.73,32.21,79.33 c1.95,3.9,4.32,7.71,5.51,11.84c1.03,3.61,0.66,7.61,0.91,11.45c-0.73,0.14-1.45,0.28-2.18,0.42c-0.49-1.57-0.98-3.15-1.47-4.72 c-0.22,0.09-0.44,0.19-0.66,0.28c-0.85-2.62-1.7-5.24-2.74-8.45c-0.9,2.53-1.55,4.4-2.21,6.26c-0.41-0.03-0.83-0.06-1.24-0.08 c-0.19-2.78-0.35-5.56-0.56-8.34c-0.67-9.04-7.05-14.8-12.04-21.47c-5.2-6.95-10.31-14.09-14.36-21.73 c-3.56-6.7-5.59-14.21-9-21.29c-3.02,9.7-8.69,18.66-6.3,29.2c0.63,2.78,2.68,5.21,3.87,7.9c4.73,10.64,5.56,22.14,6.92,33.46 c1.21,10.13,1.88,20.38,1.96,30.59c0.06,7.02-1.67,14.04-1.85,21.08c-0.12,4.66,0.83,9.41,1.73,14.03 c1.21,6.22,2.81,12.36,4.28,18.52c0.3,1.26,0.69,2.51,1.23,3.69c3.92,8.54,7.79,17.1,11.88,25.55c1.3,2.67,3.24,5.04,5.07,7.83 c-2.19,0.86-3.64,1.76-5.17,1.97c-3.53,0.47-6.9,0.64-8.13-4.11c-1.71-6.58-3.78-13.07-5.87-19.54c-0.44-1.35-1.6-2.47-3.21-3.33 c0,16.17-7.35,32.86,6.17,48.11c-3.55,0-5.95,0.01-8.36,0c-7.59-0.03-7.66-0.54-7.72-7.64c-0.11-13.74-0.69-27.4-5.27-40.71 c-1.72-5.01-0.38-11.01-1.01-16.49c-0.67-5.79-2.11-11.48-3.08-17.24c-2.52-14.91-12.01-26.06-20.01-38.12 c-5.34-8.06-10.18-16.56-14.25-25.32c-5.18-11.16-5.52-22.61,1.24-33.57c3.68-5.96,3.12-12.27,1.17-18.55 c-2.5-8.03-5.22-16-8.05-24.61c-0.91,1.44-1.76,2.86-2.68,4.24C32.9-10.29,28.04-2.46,22.63,4.96c-5.34,7.34-14.22,8.45-22.08,10.9 c-8.48,2.65-17.2,4.46-23.03,12.01c-1.84,2.39-3.61,4.84-5.41,7.26c-0.39-0.17-0.78-0.34-1.16-0.51c0.81-2.38,1.62-4.76,2.43-7.14 c-0.2-0.22-0.39-0.44-0.59-0.66c-1.24,1.3-2.31,2.88-3.77,3.83c-2.54,1.66-5.33,2.94-8.02,4.37C-39,34.36-39,33.7-39,33.03z",
14
+  "path://M80,100.49c0,5.23,0.13,10.46-0.03,15.69c-0.2,6.3-0.57,12.6-0.99,18.9 c-0.94,14.08-2.08,28.14-2.87,42.22c-0.41,7.29,4.95,14.31,12.03,16.62c1.22,0.4,2.43,0.84,3.65,2.16c-1.8,0.35-3.59,0.91-5.4,1 c-5.4,0.3-10.83,0.7-16.22,0.42c-1.44-0.07-3.7-2.25-3.95-3.74c-0.56-3.4,0.14-6.98-0.13-10.45c-0.77-9.67-0.8-19.56-3-28.92 c-1.97-8.39-2.18-16.07-0.02-24.35c1.28-4.91,1.34-10.48,0.5-15.52c-2.09-12.71-4.95-25.31-7.65-37.92 c-0.34-1.57-1.3-3.33-2.52-4.33c-3.71-3.01-7.37-6.38-11.62-8.38c-13.61-6.41-19.23-28.93-9.14-42.66 c5.41-7.36,5.32-13.85,0.74-21.4c-4.33-7.14-7.8-14.79-11.71-22.32C16.35-14.03,11.08-4.82,4.94,3.76 C1.8,8.13-2.43,12.19-7.04,14.93c-5.3,3.15-11.39,5.39-17.43,6.76c-9.05,2.05-14.31,7.59-17.67,15.68 c-0.43,1.05-1.13,1.99-1.76,2.95c-0.15,0.22-0.52,0.29-1.8,0.94c0.32-2.2,0.61-3.74,0.74-5.3c0.09-1.14-0.04-2.3-0.07-3.46 c-1.38,0.26-3.21,0.05-4.06,0.86c-2,1.91-3.5,4.33-5.27,6.49c-0.5,0.61-1.22,1.03-1.95,1.61c-1.02-5.19,1.42-10.27,7.11-13.9 C-36.09,19.24-22.82,11.2-9.77,2.82c2.12-1.36,3.99-3.6,5.17-5.85C1.52-14.72,7.44-26.52,13.29-38.35 c2.21-4.48,5.11-7.27,10.48-7.83c3.23-0.34,6.27-2.47,9.89-4.01c-4.23-4.83-8.31-8.74-11.49-13.28c-6.34-9.03-7.03-22.38,3.14-29.92 c6.9-5.12,13.79-4.47,20.85,0.69c6.15,4.5,6.15,11.2,7.55,17.13c1.32,5.6,0.82,11.84,0.1,17.67c-0.73,5.9-0.29,7.53,5.3,8.73 c0.96,0.21,1.99,0.17,2.98,0.19C72.51-48.76,74.44-47.06,76-36.52c1.83,12.35,2.1,25.03,6.99,36.77 c3.28,7.88,6.57,15.79,10.47,23.38c3.66,7.12,8.05,13.87,12.25,20.7c2.97,4.84,3.11,12.13-0.65,17c-1.8-2.05-3.45-3.92-5.01-5.7 c0.04-0.04-0.45,0.53-1.46,1.71C94.83,37.86,80.48,24.72,71.82,8.18c0.46,3.43,0.09,7.26,1.54,10.2c3.95,8.01,1.92,16.67,3.56,24.91 c1.63,8.22,1.87,16.74,3.79,24.88c0.88,3.73,4.32,6.84,6.58,10.25c1.09,1.65,2.2,3.29,3.17,5.01c4.84,8.58,9.09,17.55,14.58,25.69 c7.27,10.79,15.21,21.16,23.39,31.28c6.19,7.67,13.08,14.8,19.92,21.92c2.93,3.04,6.54,5.42,9.96,8.2 c-6.92,4.09-12.67,3.33-19.87-2.17c-1.82-1.39-3.76-2.79-5.87-3.62c-4.12-1.63-4.47-4.54-3.73-8.3c0.26-1.33,0.17-3.42-0.66-4.18 c-7.53-6.87-14.85-14.07-23.04-20.07c-7.75-5.68-12.26-13.2-16.11-21.54c-1.44-3.12-3.31-6.06-5.14-8.98 c-0.5-0.8-1.57-1.24-2.38-1.85C81.01,100.03,80.5,100.26,80,100.49z",
15
+  "path://M-57,41.03c3.65-4.15,7.17-8.43,10.98-12.42c6.53-6.83,13.31-13.41,19.84-20.23 c1.76-1.84,3.51-3.98,4.4-6.31c3.8-9.99,6.99-20.23,10.99-30.14c2.74-6.79,5.65-13.62,12.37-17.95c4.17-2.68,5.12-7.31,4.29-11.96 c-0.3-1.67-2.02-3.08-3.35-4.97c-2.57,5.59-4.62,10.03-7.21,15.66c-4.79-6.43-9.76-10.83-11.68-16.31 c-1.77-5.04-1.18-11.44,0.04-16.86c1.27-5.62,5.24-9.71,12.03-9.7c1.55,0,3.1-1.68,4.66-2.55c9.3-5.22,20.47-1.53,25.73,7.59 c4.06,7.04,4.84,14.6,5.57,22.26c0.65,6.82-0.32,7.59-8.26,8.11c0,1.97,0,3.96,0,5.95c8.01-0.17,8.01,0.43,12.02,7.52 c2.09,3.69,6.34,6.1,9.41,9.29c2.48,2.58,7.04,3.14,7.24,8c0.29,6.79,0.46,6.78-6.43,11.08c0,15.78-0.02,31.49,0.03,47.2 c0,1.23,0.29,2.51,0.71,3.67c1.64,4.59,3.27,9.19,5.13,13.7c0.79,1.92,1.88,3.83,3.26,5.36c7.54,8.36,15.45,16.41,22.75,24.96 c5.09,5.97,9.05,12.9,14.18,18.84c9.73,11.26,19.47,22.59,30.08,33c8.84,8.67,18.88,16.13,28.51,23.98 c2.52,2.06,5.48,3.58,8.27,5.36c-4.02,3.54-10.94,4.01-16.34,1.62c-4.76-2.11-9.63-4.03-14.6-5.56c-5.6-1.72-6.59-3.72-4.42-9.32 c0.47-1.22-0.12-3.8-1.11-4.5c-7.36-5.15-14.66-10.53-22.55-14.78c-8.49-4.57-15.35-10.3-19.59-19.04 c-4.29-8.84-11.6-14.85-19.48-20.29c-3.2-2.21-6.43-4.4-9.64-6.6c-0.53,0.17-1.05,0.33-1.58,0.5c-0.11,11.17,0.12,22.36-0.45,33.51 c-0.29,5.72-2.33,11.33-3,17.05c-1.68,14.31-3.04,28.65-4.51,42.98c-0.34,3.34,0.94,5.76,4.12,7.18c6.09,2.73,12.14,5.56,18.61,9.26 c-3.96,0.36-7.93,0.72-11.89,1.08c-4.92,0.45-9.91,0.53-14.76,1.42c-6.96,1.28-9.68-0.99-8.69-8.02c1.73-12.28,0.67-24.36-1.4-36.56 c-1.08-6.36-2.02-14.02,0.49-19.47c5.62-12.19,2.4-23.48,0.01-35.2c-2.05-10.04-3.8-20.14-5.9-30.17c-0.32-1.52-1.72-2.91-2.87-4.13 c-3.6-3.83-8.03-7.09-10.85-11.41c-6.61-10.14-2.6-19.6,3.74-28.13c5.27-7.1,6.85-14.1,2.15-21.95c-3.79-6.34-7.53-12.7-11.38-19 c-0.46-0.75-1.41-1.2-2.77-2.3c-3.27,7.28-6.98,13.9-9.24,20.98c-3.58,11.2-12.11,17.05-21.53,22.3c-1.86,1.04-3.57,2.44-5.53,3.21 c-4.29,1.67-6.09,3.88-4.9,9.01c0.69,2.96-1.31,6.55-2.1,9.86c-0.5,0.03-0.99,0.06-1.49,0.08c-0.18-2.57-0.36-5.14-0.66-9.41 c-3.45,4.38-6.11,7.75-9.33,11.84c-1.07-2.08-1.61-3.13-2.15-4.18C-57,43.7-57,42.36-57,41.03z",
16
+];
17
+
18
+export default class CustomWaterContent {
19
+  constructor(dom, opts) {
20
+
21
+    console.log("opts", opts);
22
+    opts = opts || {};
23
+    if (opts.getConfig === true) {
24
+      return;
25
+    }
26
+    this.chart = null;
27
+    this._dom = dom;
28
+
29
+    this.init(opts);
30
+  }
31
+
32
+  init(opts) {
33
+    this.chart = echarts.init(this._dom);
34
+    this.setOption(opts);
35
+  }
36
+
37
+  setOption(opts, data) {
38
+    // this.chart.setOption(this.mergeOption(opts, data), {notMerge:true});
39
+    this.chart.setOption(opts, { notMerge: true });
40
+  }
41
+
42
+  // mergeOption(style, dataConfig){
43
+  //     style = utils.deepCopy(style);
44
+  //     style.xAxis.data = dataConfig.defaultData[dataConfig.configList[0].defaultKey];
45
+  //     style.color = style.color.color;
46
+  //     style.yAxis = {
47
+  //         type:'value'
48
+  //     }
49
+
50
+  //     style.series = [];
51
+  //     let series = dataConfig.configList[1].defaultKey;
52
+  //     if(Array.isArray(series) === true){
53
+  //         series.forEach( item => {
54
+  //             style.series.push({
55
+  //                 data:dataConfig.defaultData[item],
56
+  //                 type:'bar'
57
+  //             })
58
+  //         })
59
+  //     }else{
60
+  //         style.series = [
61
+  //             {
62
+  //               data: dataConfig.defaultData[series],
63
+  //               type: 'bar'
64
+  //             }
65
+  //           ]
66
+  //     }
67
+
68
+  //     return style;
69
+  // }
70
+
71
+  getConfig() {
72
+    console.log("styleConfig", styleConfig);
73
+
74
+    return {
75
+      styleConfig: utils.deepCopy(styleConfig),
76
+      dataConfig: utils.deepCopy(dataConfig),
77
+      fun: {
78
+        getColName: this.getColName,
79
+        themeMerge: this.themeMerge,
80
+        insertTheme:function(config,curTheme){
81
+          config = utils.insertCommonTheme(config,curTheme)
82
+          // config.shape.sub.label.sub.textStyle.sub.color.defaultValue = curTheme.theme.textColor;
83
+          // config.shape.sub.topList.sub.titleColor.defaultValue = curTheme.theme.titleColor;
84
+          return config;
85
+      },
86
+      },
87
+    };
88
+  }
89
+  themeMerge(styleConfig, dataConfig) {
90
+    console.log("dataConfigttt===", dataConfig);
91
+    console.log("styleConfigttt===", styleConfig);
92
+    let style = utils.deepCopy(styleConfig);
93
+    style.xAxis.data = dataConfig.xAxis[0].data;
94
+    style.color = style.color.color;
95
+    Object.assign(style.yAxis, {
96
+      type: "value",
97
+    });
98
+
99
+    style.series = [];
100
+    // 额外属性
101
+    const bodyMax = 150;
102
+    const labelSetting = {
103
+      show: true,
104
+      position: "top",
105
+      offset: [0, -20],
106
+      formatter: function (param) {
107
+        return ((param.value / bodyMax) * 100).toFixed(0) + "%";
108
+      },
109
+      fontSize: 18,
110
+      // fontFamily: "Arial",
111
+    };
112
+    const markLineSetting = {
113
+      symbol: "none",
114
+      lineStyle: {
115
+        opacity: 0.3,
116
+      },
117
+      data: [
118
+        {
119
+          type: "max",
120
+          label: {
121
+            formatter: "max: {c}",
122
+          },
123
+        },
124
+        {
125
+          type: "min",
126
+          label: {
127
+            formatter: "min: {c}",
128
+          },
129
+        },
130
+      ],
131
+    };
132
+
133
+    let series = dataConfig.series;
134
+    if (Array.isArray(series) === true) {
135
+      series.forEach((item, index) => {
136
+        const dataItem = item.data.map((item, index) => {
137
+          return {
138
+            value: item,
139
+            symbol: symbols[index],
140
+          };
141
+        });
142
+        const pushItem = {};
143
+        Object.assign(pushItem, item, {
144
+          name: item.name,
145
+          data: dataItem,
146
+          type: "pictorialBar",
147
+        });
148
+        console.log("11111111111111111111111111s");
149
+        if (item.name === "typeA" || item.name === "typeB") {
150
+          Object.assign(pushItem, {
151
+            symbolClip: style.customSeries.symbolClip,
152
+            symbolBoundingData: style.customSeries.symbolBoundingData,
153
+            label: style.customSeries.label,
154
+            markLine: style.customSeries.markLine,
155
+            // label: labelSetting,
156
+            // markLine: markLineSetting,
157
+            z: 10,
158
+          });
159
+        }
160
+        if (item.name === "full") {
161
+          Object.assign(pushItem, {
162
+            symbolBoundingData: style.customSeries.symbolBoundingData,
163
+            animationDuration: 0,
164
+            itemStyle: {
165
+              color: "#ccc",
166
+            },
167
+          });
168
+        }
169
+        style.series.push(pushItem);
170
+      });
171
+    }
172
+
173
+    console.log("stylettt", style);
174
+    return style;
175
+  }
176
+
177
+  getColName(dataConfig) {
178
+    let column = {};
179
+    dataConfig = JSON.parse(JSON.stringify(dataConfig));
180
+    let dataConfigKey = dataConfig.configList;
181
+    column.xAxis = [dataConfigKey[0].defaultKey];
182
+    column.series = dataConfigKey[1].defaultKey;
183
+    return column;
184
+  }
185
+
186
+  resize() {
187
+    this.chart.resize();
188
+  }
189
+
190
+  dispose() {
191
+    this.chart.dispose();
192
+  }
193
+}

+ 160
- 0
src/chart/echarts/CustomWaterContent/config/chartData.js Näytä tiedosto

@@ -0,0 +1,160 @@
1
+const symbols = [
2
+  'path://M36.7,102.84c-1.17,2.54-2.99,4.98-3.39,7.63c-1.51,9.89-3.31,19.58-1.93,29.95 c0.95,7.15-2.91,14.82-3.57,22.35c-0.64,7.36-0.2,14.86,0.35,22.25c0.12,1.68,2.66,3.17,4.67,5.4c-0.6,0.82-1.5,2.22-2.58,3.48 c-0.96,1.12-1.96,2.35-3.21,3.04c-1.71,0.95-3.71,2.03-5.51,1.9c-1.18-0.08-3.04-2.13-3.16-3.43c-0.44-4.72,0-9.52-0.41-14.25 c-0.94-10.88-2.32-21.72-3.24-32.61c-0.49-5.84-1.63-12.01-0.35-17.54c3.39-14.56,2.8-28.84,0.36-43.4 c-2.71-16.16-1.06-32.4,0.54-48.59c0.91-9.22,4.62-17.36,8.53-25.57c1.32-2.77,1.88-6.84,0.87-9.62C21.89-3.77,18.09-11,14.7-18.38 c-0.56,0.1-1.13,0.21-1.69,0.31C10.17-11.52,6.29-5.2,4.71,1.65C2.05,13.21-4.42,22.3-11.43,31.28c-1.32,1.69-2.51,3.5-3.98,5.04 c-4.85,5.08-3.25,10.98-2.32,16.82c0.25,1.53,0.52,3.06,0.77,4.59c-0.53,0.22-1.07,0.43-1.6,0.65c-1.07-2.09-2.14-4.19-3.28-6.44 c-6.39,2.91-2.67,9.6-5.23,15.16c-1.61-3.31-2.77-5.68-3.93-8.06c0-0.33,0-0.67,0-1c6.96-16.08,14.63-31.9,20.68-48.31 C-5.24-4.07-2.03-18.55,2-32.73c0.36-1.27,0.75-2.53,0.98-3.82c1.36-7.75,4.19-10.23,11.88-10.38c1.76-0.04,3.52-0.21,5.76-0.35 c-0.55-3.95-1.21-7.3-1.45-10.68c-0.61-8.67,0.77-16.69,7.39-23.19c2.18-2.14,4.27-4.82,5.25-7.65c2.39-6.88,11.66-9,16.94-8.12 c5.92,0.99,12.15,7.93,12.16,14.12c0.01,9.89-5.19,17.26-12.24,23.68c-2.17,1.97-5.35,4.77-5.17,6.94c0.31,3.78,4.15,5.66,8.08,6.04 c1.82,0.18,3.7,0.37,5.49,0.1c5.62-0.85,8.8,2.17,10.85,6.73C73.38-27.19,78.46-14.9,84.2-2.91c1.52,3.17,4.52,5.91,7.41,8.09 c7.64,5.77,15.57,11.16,23.45,16.61c2.28,1.58,4.64,3.23,7.21,4.14c5.18,1.84,8.09,5.63,9.82,10.46c0.45,1.24,0.19,3.71-0.6,4.18 c-1.06,0.63-3.15,0.27-4.44-0.38c-7.05-3.54-12.84-8.88-19.14-13.5c-3.5-2.57-7.9-4-12.03-5.6c-9.44-3.66-17.73-8.42-22.5-18.09 c-2.43-4.94-6.09-9.27-9.69-14.61c-1.2,10.98-4.46,20.65,1.14,31.19c6.62,12.47,5.89,26.25,1.21,39.49 c-2.52,7.11-6.5,13.74-8.67,20.94c-1.91,6.33-2.2,13.15-3.23,19.75c-0.72,4.63-0.84,9.48-2.36,13.84 c-2.49,7.16-6.67,13.83-5.84,21.82c0.42,4.02,1.29,7.99,2.1,12.8c-3.74-0.49-7.47-0.4-10.67-1.66c-1.33-0.53-2.43-4.11-2.07-6.01 c1.86-9.94,3.89-19.69,0.07-29.74C34.55,108.63,36.19,105.52,36.7,102.84c1.25-8.45,2.51-16.89,3.71-24.9 c-0.83-0.58-0.85-0.59-0.87-0.61c-0.03,0.16-0.07,0.32-0.09,0.48C38.53,86.15,37.62,94.5,36.7,102.84z',
3
+  'path://M40.02-99c2.07,1.21,4.26,2.25,6.19,3.66c5.94,4.34,8.23,12.57,4.95,19.79 c-3.21,7.08-6.82,14.03-10.86,20.67c-2.17,3.56-1.25,5.38,1.99,6.36c2.94,0.89,6.36,1.91,9.15,1.21c5.51-1.4,8.33,1.23,10.66,5.29 c4.71,8.22,9.72,16.29,13.84,24.8C81.06-6.65,89,0.4,99.56,5.17C109.82,9.8,120,14.7,129.85,20.15c4.72,2.61,9.09,6.37,10.24,12.97 c-2.89-1.93-5.2-3.75-7.78-5.04c-0.99-0.5-2.6,0.22-4.83,0.5c-5.36-9.35-16.8-9.4-26.74-12.62C91.68,13.04,81.82,11.37,75.66,3 c-5.98-8.13-11.61-16.52-17.4-24.79c-0.46-0.66-0.98-1.27-1.66-2.16c-3.21,7.75-6.78,15-9.12,22.63c-1.15,3.76-0.64,8.37,0.26,12.33 c0.81,3.59,3.01,6.92,4.87,10.22c6.73,11.95,2.41,22.89-2.91,33.75c-0.35,0.72-0.86,1.43-1.46,1.97 c-7.11,6.38-14.48,12.5-21.24,19.22c-2.08,2.07-3.1,5.7-3.62,8.77c-1.92,11.44-3.81,22.92-4.93,34.46 c-0.5,5.16,1.06,10.49,1.28,15.75c0.23,5.7,0.39,11.47-0.15,17.13c-1.15,12.11-2.83,24.17-4.11,36.27c-0.18,1.72,0.8,3.53,1.13,5.33 c0.88,4.76-0.22,6.23-4.71,5.17c-4.53-1.06-8.86-2.94-14.27-4.8c1.98-1.62,2.84-2.83,3.94-3.12c5.42-1.44,7-5.2,6.39-10.23 c-1.39-11.39-3.15-22.73-4.24-34.14c-0.53-5.56,0.16-11.23,0.24-16.85c0.06-4.49,0.01-8.97,0.01-14.72 c-2.79,1.53-5.2,2.27-6.79,3.83c-4.26,4.19-8.39,8.56-12.11,13.22c-1.55,1.95-2.19,4.76-2.79,7.29c-0.47,1.99,0.6,5.02-0.48,6.05 c-2.17,2.08-5.2,3.79-8.13,4.38c-3.61,0.73-7.49,0.18-12.26,0.18c6.34-8.69,11.91-16.11,17.22-23.71c3.29-4.71,6.23-9.67,9.24-14.58 c2.15-3.5,3.76-7.4,6.3-10.57c5.38-6.73,6.74-14.28,6.72-22.64C0.88,68.3,1.36,57.91,2.26,47.58c0.69-7.85,2.15-15.67,3.7-23.41 c0.77-3.83,2.89-7.39,3.72-11.22c1.83-8.4-1.9-16-4.38-23.95C2.96-5.34-0.31,0.12-1.5,6c-1.96,9.72-7.34,17.44-12.26,25.57 c-4.39,7.25-8.79,14.52-12.75,22.01c-2.64,5-4.5,10.41-6.83,15.92c-4.82-5.28-4.65-10.59-0.94-16.97 C-21.4,30.4-12.08,6.78-6.17-18.12c1.4-5.88,1.24-12.11,2.23-18.12c1.2-7.27,4.15-9.56,11.39-9.69c8.65-0.14,13.86-4.77,14.48-13.51 c0.35-5.01,0.16-10.11-0.28-15.12c-0.82-9.3,2.49-16.57,10.17-21.69c2.08-1.39,4.78-1.87,7.2-2.76C39.35-99,39.69-99,40.02-99z',
4
+  'path://M-39,33.03c3.72-9.74,12.97-12.87,20.96-17.43c9.51-5.43,19.2-10.54,28.69-16 c1.77-1.02,3.35-2.85,4.33-4.67C21.44-17,27.82-28.95,33.95-41.04c2.13-4.2,4.95-6.01,9.7-6.09c3.68-0.06,7.52-0.92,10.97-2.25 c5.09-1.95,4.85-5.2,1.1-9.01c-5.12-5.21-10.89-10.1-13.23-17.54c-1.71-5.44,0.78-15.62,4.87-18.74 c4.12-3.15,12.55-3.84,16.69-0.12c3.39,3.04,6.44,7.27,7.8,11.56c1.96,6.16,3.31,12.9,2.99,19.29 c-0.45,9.21,6.35,16.71,15.73,16.97c7.94,0.21,9.27,0.78,10.69,8.61c5.23,28.73,19.4,53.73,32.21,79.33 c1.95,3.9,4.32,7.71,5.51,11.84c1.03,3.61,0.66,7.61,0.91,11.45c-0.73,0.14-1.45,0.28-2.18,0.42c-0.49-1.57-0.98-3.15-1.47-4.72 c-0.22,0.09-0.44,0.19-0.66,0.28c-0.85-2.62-1.7-5.24-2.74-8.45c-0.9,2.53-1.55,4.4-2.21,6.26c-0.41-0.03-0.83-0.06-1.24-0.08 c-0.19-2.78-0.35-5.56-0.56-8.34c-0.67-9.04-7.05-14.8-12.04-21.47c-5.2-6.95-10.31-14.09-14.36-21.73 c-3.56-6.7-5.59-14.21-9-21.29c-3.02,9.7-8.69,18.66-6.3,29.2c0.63,2.78,2.68,5.21,3.87,7.9c4.73,10.64,5.56,22.14,6.92,33.46 c1.21,10.13,1.88,20.38,1.96,30.59c0.06,7.02-1.67,14.04-1.85,21.08c-0.12,4.66,0.83,9.41,1.73,14.03 c1.21,6.22,2.81,12.36,4.28,18.52c0.3,1.26,0.69,2.51,1.23,3.69c3.92,8.54,7.79,17.1,11.88,25.55c1.3,2.67,3.24,5.04,5.07,7.83 c-2.19,0.86-3.64,1.76-5.17,1.97c-3.53,0.47-6.9,0.64-8.13-4.11c-1.71-6.58-3.78-13.07-5.87-19.54c-0.44-1.35-1.6-2.47-3.21-3.33 c0,16.17-7.35,32.86,6.17,48.11c-3.55,0-5.95,0.01-8.36,0c-7.59-0.03-7.66-0.54-7.72-7.64c-0.11-13.74-0.69-27.4-5.27-40.71 c-1.72-5.01-0.38-11.01-1.01-16.49c-0.67-5.79-2.11-11.48-3.08-17.24c-2.52-14.91-12.01-26.06-20.01-38.12 c-5.34-8.06-10.18-16.56-14.25-25.32c-5.18-11.16-5.52-22.61,1.24-33.57c3.68-5.96,3.12-12.27,1.17-18.55 c-2.5-8.03-5.22-16-8.05-24.61c-0.91,1.44-1.76,2.86-2.68,4.24C32.9-10.29,28.04-2.46,22.63,4.96c-5.34,7.34-14.22,8.45-22.08,10.9 c-8.48,2.65-17.2,4.46-23.03,12.01c-1.84,2.39-3.61,4.84-5.41,7.26c-0.39-0.17-0.78-0.34-1.16-0.51c0.81-2.38,1.62-4.76,2.43-7.14 c-0.2-0.22-0.39-0.44-0.59-0.66c-1.24,1.3-2.31,2.88-3.77,3.83c-2.54,1.66-5.33,2.94-8.02,4.37C-39,34.36-39,33.7-39,33.03z',
5
+  'path://M80,100.49c0,5.23,0.13,10.46-0.03,15.69c-0.2,6.3-0.57,12.6-0.99,18.9 c-0.94,14.08-2.08,28.14-2.87,42.22c-0.41,7.29,4.95,14.31,12.03,16.62c1.22,0.4,2.43,0.84,3.65,2.16c-1.8,0.35-3.59,0.91-5.4,1 c-5.4,0.3-10.83,0.7-16.22,0.42c-1.44-0.07-3.7-2.25-3.95-3.74c-0.56-3.4,0.14-6.98-0.13-10.45c-0.77-9.67-0.8-19.56-3-28.92 c-1.97-8.39-2.18-16.07-0.02-24.35c1.28-4.91,1.34-10.48,0.5-15.52c-2.09-12.71-4.95-25.31-7.65-37.92 c-0.34-1.57-1.3-3.33-2.52-4.33c-3.71-3.01-7.37-6.38-11.62-8.38c-13.61-6.41-19.23-28.93-9.14-42.66 c5.41-7.36,5.32-13.85,0.74-21.4c-4.33-7.14-7.8-14.79-11.71-22.32C16.35-14.03,11.08-4.82,4.94,3.76 C1.8,8.13-2.43,12.19-7.04,14.93c-5.3,3.15-11.39,5.39-17.43,6.76c-9.05,2.05-14.31,7.59-17.67,15.68 c-0.43,1.05-1.13,1.99-1.76,2.95c-0.15,0.22-0.52,0.29-1.8,0.94c0.32-2.2,0.61-3.74,0.74-5.3c0.09-1.14-0.04-2.3-0.07-3.46 c-1.38,0.26-3.21,0.05-4.06,0.86c-2,1.91-3.5,4.33-5.27,6.49c-0.5,0.61-1.22,1.03-1.95,1.61c-1.02-5.19,1.42-10.27,7.11-13.9 C-36.09,19.24-22.82,11.2-9.77,2.82c2.12-1.36,3.99-3.6,5.17-5.85C1.52-14.72,7.44-26.52,13.29-38.35 c2.21-4.48,5.11-7.27,10.48-7.83c3.23-0.34,6.27-2.47,9.89-4.01c-4.23-4.83-8.31-8.74-11.49-13.28c-6.34-9.03-7.03-22.38,3.14-29.92 c6.9-5.12,13.79-4.47,20.85,0.69c6.15,4.5,6.15,11.2,7.55,17.13c1.32,5.6,0.82,11.84,0.1,17.67c-0.73,5.9-0.29,7.53,5.3,8.73 c0.96,0.21,1.99,0.17,2.98,0.19C72.51-48.76,74.44-47.06,76-36.52c1.83,12.35,2.1,25.03,6.99,36.77 c3.28,7.88,6.57,15.79,10.47,23.38c3.66,7.12,8.05,13.87,12.25,20.7c2.97,4.84,3.11,12.13-0.65,17c-1.8-2.05-3.45-3.92-5.01-5.7 c0.04-0.04-0.45,0.53-1.46,1.71C94.83,37.86,80.48,24.72,71.82,8.18c0.46,3.43,0.09,7.26,1.54,10.2c3.95,8.01,1.92,16.67,3.56,24.91 c1.63,8.22,1.87,16.74,3.79,24.88c0.88,3.73,4.32,6.84,6.58,10.25c1.09,1.65,2.2,3.29,3.17,5.01c4.84,8.58,9.09,17.55,14.58,25.69 c7.27,10.79,15.21,21.16,23.39,31.28c6.19,7.67,13.08,14.8,19.92,21.92c2.93,3.04,6.54,5.42,9.96,8.2 c-6.92,4.09-12.67,3.33-19.87-2.17c-1.82-1.39-3.76-2.79-5.87-3.62c-4.12-1.63-4.47-4.54-3.73-8.3c0.26-1.33,0.17-3.42-0.66-4.18 c-7.53-6.87-14.85-14.07-23.04-20.07c-7.75-5.68-12.26-13.2-16.11-21.54c-1.44-3.12-3.31-6.06-5.14-8.98 c-0.5-0.8-1.57-1.24-2.38-1.85C81.01,100.03,80.5,100.26,80,100.49z',
6
+  'path://M-57,41.03c3.65-4.15,7.17-8.43,10.98-12.42c6.53-6.83,13.31-13.41,19.84-20.23 c1.76-1.84,3.51-3.98,4.4-6.31c3.8-9.99,6.99-20.23,10.99-30.14c2.74-6.79,5.65-13.62,12.37-17.95c4.17-2.68,5.12-7.31,4.29-11.96 c-0.3-1.67-2.02-3.08-3.35-4.97c-2.57,5.59-4.62,10.03-7.21,15.66c-4.79-6.43-9.76-10.83-11.68-16.31 c-1.77-5.04-1.18-11.44,0.04-16.86c1.27-5.62,5.24-9.71,12.03-9.7c1.55,0,3.1-1.68,4.66-2.55c9.3-5.22,20.47-1.53,25.73,7.59 c4.06,7.04,4.84,14.6,5.57,22.26c0.65,6.82-0.32,7.59-8.26,8.11c0,1.97,0,3.96,0,5.95c8.01-0.17,8.01,0.43,12.02,7.52 c2.09,3.69,6.34,6.1,9.41,9.29c2.48,2.58,7.04,3.14,7.24,8c0.29,6.79,0.46,6.78-6.43,11.08c0,15.78-0.02,31.49,0.03,47.2 c0,1.23,0.29,2.51,0.71,3.67c1.64,4.59,3.27,9.19,5.13,13.7c0.79,1.92,1.88,3.83,3.26,5.36c7.54,8.36,15.45,16.41,22.75,24.96 c5.09,5.97,9.05,12.9,14.18,18.84c9.73,11.26,19.47,22.59,30.08,33c8.84,8.67,18.88,16.13,28.51,23.98 c2.52,2.06,5.48,3.58,8.27,5.36c-4.02,3.54-10.94,4.01-16.34,1.62c-4.76-2.11-9.63-4.03-14.6-5.56c-5.6-1.72-6.59-3.72-4.42-9.32 c0.47-1.22-0.12-3.8-1.11-4.5c-7.36-5.15-14.66-10.53-22.55-14.78c-8.49-4.57-15.35-10.3-19.59-19.04 c-4.29-8.84-11.6-14.85-19.48-20.29c-3.2-2.21-6.43-4.4-9.64-6.6c-0.53,0.17-1.05,0.33-1.58,0.5c-0.11,11.17,0.12,22.36-0.45,33.51 c-0.29,5.72-2.33,11.33-3,17.05c-1.68,14.31-3.04,28.65-4.51,42.98c-0.34,3.34,0.94,5.76,4.12,7.18c6.09,2.73,12.14,5.56,18.61,9.26 c-3.96,0.36-7.93,0.72-11.89,1.08c-4.92,0.45-9.91,0.53-14.76,1.42c-6.96,1.28-9.68-0.99-8.69-8.02c1.73-12.28,0.67-24.36-1.4-36.56 c-1.08-6.36-2.02-14.02,0.49-19.47c5.62-12.19,2.4-23.48,0.01-35.2c-2.05-10.04-3.8-20.14-5.9-30.17c-0.32-1.52-1.72-2.91-2.87-4.13 c-3.6-3.83-8.03-7.09-10.85-11.41c-6.61-10.14-2.6-19.6,3.74-28.13c5.27-7.1,6.85-14.1,2.15-21.95c-3.79-6.34-7.53-12.7-11.38-19 c-0.46-0.75-1.41-1.2-2.77-2.3c-3.27,7.28-6.98,13.9-9.24,20.98c-3.58,11.2-12.11,17.05-21.53,22.3c-1.86,1.04-3.57,2.44-5.53,3.21 c-4.29,1.67-6.09,3.88-4.9,9.01c0.69,2.96-1.31,6.55-2.1,9.86c-0.5,0.03-0.99,0.06-1.49,0.08c-0.18-2.57-0.36-5.14-0.66-9.41 c-3.45,4.38-6.11,7.75-9.33,11.84c-1.07-2.08-1.61-3.13-2.15-4.18C-57,43.7-57,42.36-57,41.03z'
7
+];
8
+const bodyMax = 150;
9
+const labelSetting = {
10
+  show: true,
11
+  position: 'top',
12
+  offset: [0, -20],
13
+  formatter: function (param) {
14
+    return ((param.value / bodyMax) * 100).toFixed(0) + '%';
15
+  },
16
+  fontSize: 18,
17
+  fontFamily: 'Arial'
18
+};
19
+const markLineSetting = {
20
+  symbol: 'none',
21
+  lineStyle: {
22
+    opacity: 0.3
23
+  },
24
+  data: [
25
+    {
26
+      type: 'max',
27
+      label: {
28
+        formatter: 'max: {c}'
29
+      }
30
+    },
31
+    {
32
+      type: 'min',
33
+      label: {
34
+        formatter: 'min: {c}'
35
+      }
36
+    }
37
+  ]
38
+};
39
+const option = {
40
+  tooltip: {},
41
+  legend: {
42
+    data: ['typeA', 'typeB'],
43
+    selectedMode: 'single'
44
+  },
45
+  xAxis: {
46
+    data: ['a', 'b', 'c', 'd', 'e'],
47
+    axisTick: { show: false },
48
+    axisLine: { show: false },
49
+    axisLabel: { show: false }
50
+  },
51
+  yAxis: {
52
+    max: bodyMax,
53
+    offset: 20,
54
+    splitLine: { show: false }
55
+  },
56
+  grid: {
57
+    top: 'center',
58
+    height: 230
59
+  },
60
+  markLine: {
61
+    z: -100
62
+  },
63
+  series: [
64
+    {
65
+      name: 'typeA',
66
+      type: 'pictorialBar',
67
+      symbolClip: true,
68
+      symbolBoundingData: bodyMax,
69
+      label: labelSetting,
70
+      data: [
71
+        {
72
+          value: 123,
73
+          symbol: symbols[0]
74
+        },
75
+        {
76
+          value: 34,
77
+          symbol: symbols[1]
78
+        },
79
+        {
80
+          value: 101,
81
+          symbol: symbols[2]
82
+        },
83
+        {
84
+          value: 89,
85
+          symbol: symbols[3]
86
+        },
87
+        {
88
+          value: 72,
89
+          symbol: symbols[4]
90
+        }
91
+      ],
92
+      markLine: markLineSetting,
93
+      z: 10
94
+    },
95
+    {
96
+      name: 'typeB',
97
+      type: 'pictorialBar',
98
+      symbolClip: true,
99
+      symbolBoundingData: bodyMax,
100
+      label: labelSetting,
101
+      data: [
102
+        {
103
+          value: 12,
104
+          symbol: symbols[0]
105
+        },
106
+        {
107
+          value: 44,
108
+          symbol: symbols[1]
109
+        },
110
+        {
111
+          value: 131,
112
+          symbol: symbols[2]
113
+        },
114
+        {
115
+          value: 33,
116
+          symbol: symbols[3]
117
+        },
118
+        {
119
+          value: 142,
120
+          symbol: symbols[4]
121
+        }
122
+      ],
123
+      markLine: markLineSetting,
124
+      z: 10
125
+    },
126
+    {
127
+      name: 'full',
128
+      type: 'pictorialBar',
129
+      symbolBoundingData: bodyMax,
130
+      animationDuration: 0,
131
+      itemStyle: {
132
+        color: '#ccc'
133
+      },
134
+      data: [
135
+        {
136
+          value: 1,
137
+          symbol: symbols[0]
138
+        },
139
+        {
140
+          value: 1,
141
+          symbol: symbols[1]
142
+        },
143
+        {
144
+          value: 1,
145
+          symbol: symbols[2]
146
+        },
147
+        {
148
+          value: 1,
149
+          symbol: symbols[3]
150
+        },
151
+        {
152
+          value: 1,
153
+          symbol: symbols[4]
154
+        }
155
+      ]
156
+    }
157
+  ]
158
+};
159
+// console.log('option', option)
160
+export default option;

+ 31
- 0
src/chart/echarts/CustomWaterContent/config/dataConfig.js Näytä tiedosto

@@ -0,0 +1,31 @@
1
+const symbols = [
2
+  "path://M36.7,102.84c-1.17,2.54-2.99,4.98-3.39,7.63c-1.51,9.89-3.31,19.58-1.93,29.95 c0.95,7.15-2.91,14.82-3.57,22.35c-0.64,7.36-0.2,14.86,0.35,22.25c0.12,1.68,2.66,3.17,4.67,5.4c-0.6,0.82-1.5,2.22-2.58,3.48 c-0.96,1.12-1.96,2.35-3.21,3.04c-1.71,0.95-3.71,2.03-5.51,1.9c-1.18-0.08-3.04-2.13-3.16-3.43c-0.44-4.72,0-9.52-0.41-14.25 c-0.94-10.88-2.32-21.72-3.24-32.61c-0.49-5.84-1.63-12.01-0.35-17.54c3.39-14.56,2.8-28.84,0.36-43.4 c-2.71-16.16-1.06-32.4,0.54-48.59c0.91-9.22,4.62-17.36,8.53-25.57c1.32-2.77,1.88-6.84,0.87-9.62C21.89-3.77,18.09-11,14.7-18.38 c-0.56,0.1-1.13,0.21-1.69,0.31C10.17-11.52,6.29-5.2,4.71,1.65C2.05,13.21-4.42,22.3-11.43,31.28c-1.32,1.69-2.51,3.5-3.98,5.04 c-4.85,5.08-3.25,10.98-2.32,16.82c0.25,1.53,0.52,3.06,0.77,4.59c-0.53,0.22-1.07,0.43-1.6,0.65c-1.07-2.09-2.14-4.19-3.28-6.44 c-6.39,2.91-2.67,9.6-5.23,15.16c-1.61-3.31-2.77-5.68-3.93-8.06c0-0.33,0-0.67,0-1c6.96-16.08,14.63-31.9,20.68-48.31 C-5.24-4.07-2.03-18.55,2-32.73c0.36-1.27,0.75-2.53,0.98-3.82c1.36-7.75,4.19-10.23,11.88-10.38c1.76-0.04,3.52-0.21,5.76-0.35 c-0.55-3.95-1.21-7.3-1.45-10.68c-0.61-8.67,0.77-16.69,7.39-23.19c2.18-2.14,4.27-4.82,5.25-7.65c2.39-6.88,11.66-9,16.94-8.12 c5.92,0.99,12.15,7.93,12.16,14.12c0.01,9.89-5.19,17.26-12.24,23.68c-2.17,1.97-5.35,4.77-5.17,6.94c0.31,3.78,4.15,5.66,8.08,6.04 c1.82,0.18,3.7,0.37,5.49,0.1c5.62-0.85,8.8,2.17,10.85,6.73C73.38-27.19,78.46-14.9,84.2-2.91c1.52,3.17,4.52,5.91,7.41,8.09 c7.64,5.77,15.57,11.16,23.45,16.61c2.28,1.58,4.64,3.23,7.21,4.14c5.18,1.84,8.09,5.63,9.82,10.46c0.45,1.24,0.19,3.71-0.6,4.18 c-1.06,0.63-3.15,0.27-4.44-0.38c-7.05-3.54-12.84-8.88-19.14-13.5c-3.5-2.57-7.9-4-12.03-5.6c-9.44-3.66-17.73-8.42-22.5-18.09 c-2.43-4.94-6.09-9.27-9.69-14.61c-1.2,10.98-4.46,20.65,1.14,31.19c6.62,12.47,5.89,26.25,1.21,39.49 c-2.52,7.11-6.5,13.74-8.67,20.94c-1.91,6.33-2.2,13.15-3.23,19.75c-0.72,4.63-0.84,9.48-2.36,13.84 c-2.49,7.16-6.67,13.83-5.84,21.82c0.42,4.02,1.29,7.99,2.1,12.8c-3.74-0.49-7.47-0.4-10.67-1.66c-1.33-0.53-2.43-4.11-2.07-6.01 c1.86-9.94,3.89-19.69,0.07-29.74C34.55,108.63,36.19,105.52,36.7,102.84c1.25-8.45,2.51-16.89,3.71-24.9 c-0.83-0.58-0.85-0.59-0.87-0.61c-0.03,0.16-0.07,0.32-0.09,0.48C38.53,86.15,37.62,94.5,36.7,102.84z",
3
+  "path://M40.02-99c2.07,1.21,4.26,2.25,6.19,3.66c5.94,4.34,8.23,12.57,4.95,19.79 c-3.21,7.08-6.82,14.03-10.86,20.67c-2.17,3.56-1.25,5.38,1.99,6.36c2.94,0.89,6.36,1.91,9.15,1.21c5.51-1.4,8.33,1.23,10.66,5.29 c4.71,8.22,9.72,16.29,13.84,24.8C81.06-6.65,89,0.4,99.56,5.17C109.82,9.8,120,14.7,129.85,20.15c4.72,2.61,9.09,6.37,10.24,12.97 c-2.89-1.93-5.2-3.75-7.78-5.04c-0.99-0.5-2.6,0.22-4.83,0.5c-5.36-9.35-16.8-9.4-26.74-12.62C91.68,13.04,81.82,11.37,75.66,3 c-5.98-8.13-11.61-16.52-17.4-24.79c-0.46-0.66-0.98-1.27-1.66-2.16c-3.21,7.75-6.78,15-9.12,22.63c-1.15,3.76-0.64,8.37,0.26,12.33 c0.81,3.59,3.01,6.92,4.87,10.22c6.73,11.95,2.41,22.89-2.91,33.75c-0.35,0.72-0.86,1.43-1.46,1.97 c-7.11,6.38-14.48,12.5-21.24,19.22c-2.08,2.07-3.1,5.7-3.62,8.77c-1.92,11.44-3.81,22.92-4.93,34.46 c-0.5,5.16,1.06,10.49,1.28,15.75c0.23,5.7,0.39,11.47-0.15,17.13c-1.15,12.11-2.83,24.17-4.11,36.27c-0.18,1.72,0.8,3.53,1.13,5.33 c0.88,4.76-0.22,6.23-4.71,5.17c-4.53-1.06-8.86-2.94-14.27-4.8c1.98-1.62,2.84-2.83,3.94-3.12c5.42-1.44,7-5.2,6.39-10.23 c-1.39-11.39-3.15-22.73-4.24-34.14c-0.53-5.56,0.16-11.23,0.24-16.85c0.06-4.49,0.01-8.97,0.01-14.72 c-2.79,1.53-5.2,2.27-6.79,3.83c-4.26,4.19-8.39,8.56-12.11,13.22c-1.55,1.95-2.19,4.76-2.79,7.29c-0.47,1.99,0.6,5.02-0.48,6.05 c-2.17,2.08-5.2,3.79-8.13,4.38c-3.61,0.73-7.49,0.18-12.26,0.18c6.34-8.69,11.91-16.11,17.22-23.71c3.29-4.71,6.23-9.67,9.24-14.58 c2.15-3.5,3.76-7.4,6.3-10.57c5.38-6.73,6.74-14.28,6.72-22.64C0.88,68.3,1.36,57.91,2.26,47.58c0.69-7.85,2.15-15.67,3.7-23.41 c0.77-3.83,2.89-7.39,3.72-11.22c1.83-8.4-1.9-16-4.38-23.95C2.96-5.34-0.31,0.12-1.5,6c-1.96,9.72-7.34,17.44-12.26,25.57 c-4.39,7.25-8.79,14.52-12.75,22.01c-2.64,5-4.5,10.41-6.83,15.92c-4.82-5.28-4.65-10.59-0.94-16.97 C-21.4,30.4-12.08,6.78-6.17-18.12c1.4-5.88,1.24-12.11,2.23-18.12c1.2-7.27,4.15-9.56,11.39-9.69c8.65-0.14,13.86-4.77,14.48-13.51 c0.35-5.01,0.16-10.11-0.28-15.12c-0.82-9.3,2.49-16.57,10.17-21.69c2.08-1.39,4.78-1.87,7.2-2.76C39.35-99,39.69-99,40.02-99z",
4
+  "path://M-39,33.03c3.72-9.74,12.97-12.87,20.96-17.43c9.51-5.43,19.2-10.54,28.69-16 c1.77-1.02,3.35-2.85,4.33-4.67C21.44-17,27.82-28.95,33.95-41.04c2.13-4.2,4.95-6.01,9.7-6.09c3.68-0.06,7.52-0.92,10.97-2.25 c5.09-1.95,4.85-5.2,1.1-9.01c-5.12-5.21-10.89-10.1-13.23-17.54c-1.71-5.44,0.78-15.62,4.87-18.74 c4.12-3.15,12.55-3.84,16.69-0.12c3.39,3.04,6.44,7.27,7.8,11.56c1.96,6.16,3.31,12.9,2.99,19.29 c-0.45,9.21,6.35,16.71,15.73,16.97c7.94,0.21,9.27,0.78,10.69,8.61c5.23,28.73,19.4,53.73,32.21,79.33 c1.95,3.9,4.32,7.71,5.51,11.84c1.03,3.61,0.66,7.61,0.91,11.45c-0.73,0.14-1.45,0.28-2.18,0.42c-0.49-1.57-0.98-3.15-1.47-4.72 c-0.22,0.09-0.44,0.19-0.66,0.28c-0.85-2.62-1.7-5.24-2.74-8.45c-0.9,2.53-1.55,4.4-2.21,6.26c-0.41-0.03-0.83-0.06-1.24-0.08 c-0.19-2.78-0.35-5.56-0.56-8.34c-0.67-9.04-7.05-14.8-12.04-21.47c-5.2-6.95-10.31-14.09-14.36-21.73 c-3.56-6.7-5.59-14.21-9-21.29c-3.02,9.7-8.69,18.66-6.3,29.2c0.63,2.78,2.68,5.21,3.87,7.9c4.73,10.64,5.56,22.14,6.92,33.46 c1.21,10.13,1.88,20.38,1.96,30.59c0.06,7.02-1.67,14.04-1.85,21.08c-0.12,4.66,0.83,9.41,1.73,14.03 c1.21,6.22,2.81,12.36,4.28,18.52c0.3,1.26,0.69,2.51,1.23,3.69c3.92,8.54,7.79,17.1,11.88,25.55c1.3,2.67,3.24,5.04,5.07,7.83 c-2.19,0.86-3.64,1.76-5.17,1.97c-3.53,0.47-6.9,0.64-8.13-4.11c-1.71-6.58-3.78-13.07-5.87-19.54c-0.44-1.35-1.6-2.47-3.21-3.33 c0,16.17-7.35,32.86,6.17,48.11c-3.55,0-5.95,0.01-8.36,0c-7.59-0.03-7.66-0.54-7.72-7.64c-0.11-13.74-0.69-27.4-5.27-40.71 c-1.72-5.01-0.38-11.01-1.01-16.49c-0.67-5.79-2.11-11.48-3.08-17.24c-2.52-14.91-12.01-26.06-20.01-38.12 c-5.34-8.06-10.18-16.56-14.25-25.32c-5.18-11.16-5.52-22.61,1.24-33.57c3.68-5.96,3.12-12.27,1.17-18.55 c-2.5-8.03-5.22-16-8.05-24.61c-0.91,1.44-1.76,2.86-2.68,4.24C32.9-10.29,28.04-2.46,22.63,4.96c-5.34,7.34-14.22,8.45-22.08,10.9 c-8.48,2.65-17.2,4.46-23.03,12.01c-1.84,2.39-3.61,4.84-5.41,7.26c-0.39-0.17-0.78-0.34-1.16-0.51c0.81-2.38,1.62-4.76,2.43-7.14 c-0.2-0.22-0.39-0.44-0.59-0.66c-1.24,1.3-2.31,2.88-3.77,3.83c-2.54,1.66-5.33,2.94-8.02,4.37C-39,34.36-39,33.7-39,33.03z",
5
+  "path://M80,100.49c0,5.23,0.13,10.46-0.03,15.69c-0.2,6.3-0.57,12.6-0.99,18.9 c-0.94,14.08-2.08,28.14-2.87,42.22c-0.41,7.29,4.95,14.31,12.03,16.62c1.22,0.4,2.43,0.84,3.65,2.16c-1.8,0.35-3.59,0.91-5.4,1 c-5.4,0.3-10.83,0.7-16.22,0.42c-1.44-0.07-3.7-2.25-3.95-3.74c-0.56-3.4,0.14-6.98-0.13-10.45c-0.77-9.67-0.8-19.56-3-28.92 c-1.97-8.39-2.18-16.07-0.02-24.35c1.28-4.91,1.34-10.48,0.5-15.52c-2.09-12.71-4.95-25.31-7.65-37.92 c-0.34-1.57-1.3-3.33-2.52-4.33c-3.71-3.01-7.37-6.38-11.62-8.38c-13.61-6.41-19.23-28.93-9.14-42.66 c5.41-7.36,5.32-13.85,0.74-21.4c-4.33-7.14-7.8-14.79-11.71-22.32C16.35-14.03,11.08-4.82,4.94,3.76 C1.8,8.13-2.43,12.19-7.04,14.93c-5.3,3.15-11.39,5.39-17.43,6.76c-9.05,2.05-14.31,7.59-17.67,15.68 c-0.43,1.05-1.13,1.99-1.76,2.95c-0.15,0.22-0.52,0.29-1.8,0.94c0.32-2.2,0.61-3.74,0.74-5.3c0.09-1.14-0.04-2.3-0.07-3.46 c-1.38,0.26-3.21,0.05-4.06,0.86c-2,1.91-3.5,4.33-5.27,6.49c-0.5,0.61-1.22,1.03-1.95,1.61c-1.02-5.19,1.42-10.27,7.11-13.9 C-36.09,19.24-22.82,11.2-9.77,2.82c2.12-1.36,3.99-3.6,5.17-5.85C1.52-14.72,7.44-26.52,13.29-38.35 c2.21-4.48,5.11-7.27,10.48-7.83c3.23-0.34,6.27-2.47,9.89-4.01c-4.23-4.83-8.31-8.74-11.49-13.28c-6.34-9.03-7.03-22.38,3.14-29.92 c6.9-5.12,13.79-4.47,20.85,0.69c6.15,4.5,6.15,11.2,7.55,17.13c1.32,5.6,0.82,11.84,0.1,17.67c-0.73,5.9-0.29,7.53,5.3,8.73 c0.96,0.21,1.99,0.17,2.98,0.19C72.51-48.76,74.44-47.06,76-36.52c1.83,12.35,2.1,25.03,6.99,36.77 c3.28,7.88,6.57,15.79,10.47,23.38c3.66,7.12,8.05,13.87,12.25,20.7c2.97,4.84,3.11,12.13-0.65,17c-1.8-2.05-3.45-3.92-5.01-5.7 c0.04-0.04-0.45,0.53-1.46,1.71C94.83,37.86,80.48,24.72,71.82,8.18c0.46,3.43,0.09,7.26,1.54,10.2c3.95,8.01,1.92,16.67,3.56,24.91 c1.63,8.22,1.87,16.74,3.79,24.88c0.88,3.73,4.32,6.84,6.58,10.25c1.09,1.65,2.2,3.29,3.17,5.01c4.84,8.58,9.09,17.55,14.58,25.69 c7.27,10.79,15.21,21.16,23.39,31.28c6.19,7.67,13.08,14.8,19.92,21.92c2.93,3.04,6.54,5.42,9.96,8.2 c-6.92,4.09-12.67,3.33-19.87-2.17c-1.82-1.39-3.76-2.79-5.87-3.62c-4.12-1.63-4.47-4.54-3.73-8.3c0.26-1.33,0.17-3.42-0.66-4.18 c-7.53-6.87-14.85-14.07-23.04-20.07c-7.75-5.68-12.26-13.2-16.11-21.54c-1.44-3.12-3.31-6.06-5.14-8.98 c-0.5-0.8-1.57-1.24-2.38-1.85C81.01,100.03,80.5,100.26,80,100.49z",
6
+  "path://M-57,41.03c3.65-4.15,7.17-8.43,10.98-12.42c6.53-6.83,13.31-13.41,19.84-20.23 c1.76-1.84,3.51-3.98,4.4-6.31c3.8-9.99,6.99-20.23,10.99-30.14c2.74-6.79,5.65-13.62,12.37-17.95c4.17-2.68,5.12-7.31,4.29-11.96 c-0.3-1.67-2.02-3.08-3.35-4.97c-2.57,5.59-4.62,10.03-7.21,15.66c-4.79-6.43-9.76-10.83-11.68-16.31 c-1.77-5.04-1.18-11.44,0.04-16.86c1.27-5.62,5.24-9.71,12.03-9.7c1.55,0,3.1-1.68,4.66-2.55c9.3-5.22,20.47-1.53,25.73,7.59 c4.06,7.04,4.84,14.6,5.57,22.26c0.65,6.82-0.32,7.59-8.26,8.11c0,1.97,0,3.96,0,5.95c8.01-0.17,8.01,0.43,12.02,7.52 c2.09,3.69,6.34,6.1,9.41,9.29c2.48,2.58,7.04,3.14,7.24,8c0.29,6.79,0.46,6.78-6.43,11.08c0,15.78-0.02,31.49,0.03,47.2 c0,1.23,0.29,2.51,0.71,3.67c1.64,4.59,3.27,9.19,5.13,13.7c0.79,1.92,1.88,3.83,3.26,5.36c7.54,8.36,15.45,16.41,22.75,24.96 c5.09,5.97,9.05,12.9,14.18,18.84c9.73,11.26,19.47,22.59,30.08,33c8.84,8.67,18.88,16.13,28.51,23.98 c2.52,2.06,5.48,3.58,8.27,5.36c-4.02,3.54-10.94,4.01-16.34,1.62c-4.76-2.11-9.63-4.03-14.6-5.56c-5.6-1.72-6.59-3.72-4.42-9.32 c0.47-1.22-0.12-3.8-1.11-4.5c-7.36-5.15-14.66-10.53-22.55-14.78c-8.49-4.57-15.35-10.3-19.59-19.04 c-4.29-8.84-11.6-14.85-19.48-20.29c-3.2-2.21-6.43-4.4-9.64-6.6c-0.53,0.17-1.05,0.33-1.58,0.5c-0.11,11.17,0.12,22.36-0.45,33.51 c-0.29,5.72-2.33,11.33-3,17.05c-1.68,14.31-3.04,28.65-4.51,42.98c-0.34,3.34,0.94,5.76,4.12,7.18c6.09,2.73,12.14,5.56,18.61,9.26 c-3.96,0.36-7.93,0.72-11.89,1.08c-4.92,0.45-9.91,0.53-14.76,1.42c-6.96,1.28-9.68-0.99-8.69-8.02c1.73-12.28,0.67-24.36-1.4-36.56 c-1.08-6.36-2.02-14.02,0.49-19.47c5.62-12.19,2.4-23.48,0.01-35.2c-2.05-10.04-3.8-20.14-5.9-30.17c-0.32-1.52-1.72-2.91-2.87-4.13 c-3.6-3.83-8.03-7.09-10.85-11.41c-6.61-10.14-2.6-19.6,3.74-28.13c5.27-7.1,6.85-14.1,2.15-21.95c-3.79-6.34-7.53-12.7-11.38-19 c-0.46-0.75-1.41-1.2-2.77-2.3c-3.27,7.28-6.98,13.9-9.24,20.98c-3.58,11.2-12.11,17.05-21.53,22.3c-1.86,1.04-3.57,2.44-5.53,3.21 c-4.29,1.67-6.09,3.88-4.9,9.01c0.69,2.96-1.31,6.55-2.1,9.86c-0.5,0.03-0.99,0.06-1.49,0.08c-0.18-2.57-0.36-5.14-0.66-9.41 c-3.45,4.38-6.11,7.75-9.33,11.84c-1.07-2.08-1.61-3.13-2.15-4.18C-57,43.7-57,42.36-57,41.03z",
7
+];
8
+
9
+const dataConfig = {
10
+  configList: [
11
+    {
12
+      name: "分类名称",
13
+      type: "xAxis",
14
+      comType: "single",
15
+      defaultKey: "类别",
16
+    },
17
+    {
18
+      name: "数值名称",
19
+      type: "series",
20
+      comType: "multi",
21
+      defaultKey: ["typeA", "typeB", "full"],
22
+    },
23
+  ],
24
+  defaultData: {
25
+    typeA: [123, 34, 101, 89, 72],
26
+    typeB: [12, 44, 131, 33, 142],
27
+    full: [1, 1, 1, 1, 1],
28
+    类别: ["a", "b", "c", "d", "e"],
29
+  },
30
+};
31
+export default dataConfig;

+ 1341
- 0
src/chart/echarts/CustomWaterContent/config/styleConfig.js
File diff suppressed because it is too large
Näytä tiedosto


+ 189
- 0
src/chart/echarts/Demo/demo.js Näytä tiedosto

@@ -0,0 +1,189 @@
1
+[
2
+  {
3
+    name: "typeA",
4
+    data: [
5
+      {
6
+        value: 123,
7
+        symbol:
8
+          "path://M36.7,102.84c-1.17,2.54-2.99,4.98-3.39,7.63c-1.51,9.89-3.31,19.58-1.93,29.95 c0.95,7.15-2.91,14.82-3.57,22.35c-0.64,7.36-0.2,14.86,0.35,22.25c0.12,1.68,2.66,3.17,4.67,5.4c-0.6,0.82-1.5,2.22-2.58,3.48 c-0.96,1.12-1.96,2.35-3.21,3.04c-1.71,0.95-3.71,2.03-5.51,1.9c-1.18-0.08-3.04-2.13-3.16-3.43c-0.44-4.72,0-9.52-0.41-14.25 c-0.94-10.88-2.32-21.72-3.24-32.61c-0.49-5.84-1.63-12.01-0.35-17.54c3.39-14.56,2.8-28.84,0.36-43.4 c-2.71-16.16-1.06-32.4,0.54-48.59c0.91-9.22,4.62-17.36,8.53-25.57c1.32-2.77,1.88-6.84,0.87-9.62C21.89-3.77,18.09-11,14.7-18.38 c-0.56,0.1-1.13,0.21-1.69,0.31C10.17-11.52,6.29-5.2,4.71,1.65C2.05,13.21-4.42,22.3-11.43,31.28c-1.32,1.69-2.51,3.5-3.98,5.04 c-4.85,5.08-3.25,10.98-2.32,16.82c0.25,1.53,0.52,3.06,0.77,4.59c-0.53,0.22-1.07,0.43-1.6,0.65c-1.07-2.09-2.14-4.19-3.28-6.44 c-6.39,2.91-2.67,9.6-5.23,15.16c-1.61-3.31-2.77-5.68-3.93-8.06c0-0.33,0-0.67,0-1c6.96-16.08,14.63-31.9,20.68-48.31 C-5.24-4.07-2.03-18.55,2-32.73c0.36-1.27,0.75-2.53,0.98-3.82c1.36-7.75,4.19-10.23,11.88-10.38c1.76-0.04,3.52-0.21,5.76-0.35 c-0.55-3.95-1.21-7.3-1.45-10.68c-0.61-8.67,0.77-16.69,7.39-23.19c2.18-2.14,4.27-4.82,5.25-7.65c2.39-6.88,11.66-9,16.94-8.12 c5.92,0.99,12.15,7.93,12.16,14.12c0.01,9.89-5.19,17.26-12.24,23.68c-2.17,1.97-5.35,4.77-5.17,6.94c0.31,3.78,4.15,5.66,8.08,6.04 c1.82,0.18,3.7,0.37,5.49,0.1c5.62-0.85,8.8,2.17,10.85,6.73C73.38-27.19,78.46-14.9,84.2-2.91c1.52,3.17,4.52,5.91,7.41,8.09 c7.64,5.77,15.57,11.16,23.45,16.61c2.28,1.58,4.64,3.23,7.21,4.14c5.18,1.84,8.09,5.63,9.82,10.46c0.45,1.24,0.19,3.71-0.6,4.18 c-1.06,0.63-3.15,0.27-4.44-0.38c-7.05-3.54-12.84-8.88-19.14-13.5c-3.5-2.57-7.9-4-12.03-5.6c-9.44-3.66-17.73-8.42-22.5-18.09 c-2.43-4.94-6.09-9.27-9.69-14.61c-1.2,10.98-4.46,20.65,1.14,31.19c6.62,12.47,5.89,26.25,1.21,39.49 c-2.52,7.11-6.5,13.74-8.67,20.94c-1.91,6.33-2.2,13.15-3.23,19.75c-0.72,4.63-0.84,9.48-2.36,13.84 c-2.49,7.16-6.67,13.83-5.84,21.82c0.42,4.02,1.29,7.99,2.1,12.8c-3.74-0.49-7.47-0.4-10.67-1.66c-1.33-0.53-2.43-4.11-2.07-6.01 c1.86-9.94,3.89-19.69,0.07-29.74C34.55,108.63,36.19,105.52,36.7,102.84c1.25-8.45,2.51-16.89,3.71-24.9 c-0.83-0.58-0.85-0.59-0.87-0.61c-0.03,0.16-0.07,0.32-0.09,0.48C38.53,86.15,37.62,94.5,36.7,102.84z",
9
+      },
10
+      {
11
+        value: 34,
12
+        symbol:
13
+          "path://M40.02-99c2.07,1.21,4.26,2.25,6.19,3.66c5.94,4.34,8.23,12.57,4.95,19.79 c-3.21,7.08-6.82,14.03-10.86,20.67c-2.17,3.56-1.25,5.38,1.99,6.36c2.94,0.89,6.36,1.91,9.15,1.21c5.51-1.4,8.33,1.23,10.66,5.29 c4.71,8.22,9.72,16.29,13.84,24.8C81.06-6.65,89,0.4,99.56,5.17C109.82,9.8,120,14.7,129.85,20.15c4.72,2.61,9.09,6.37,10.24,12.97 c-2.89-1.93-5.2-3.75-7.78-5.04c-0.99-0.5-2.6,0.22-4.83,0.5c-5.36-9.35-16.8-9.4-26.74-12.62C91.68,13.04,81.82,11.37,75.66,3 c-5.98-8.13-11.61-16.52-17.4-24.79c-0.46-0.66-0.98-1.27-1.66-2.16c-3.21,7.75-6.78,15-9.12,22.63c-1.15,3.76-0.64,8.37,0.26,12.33 c0.81,3.59,3.01,6.92,4.87,10.22c6.73,11.95,2.41,22.89-2.91,33.75c-0.35,0.72-0.86,1.43-1.46,1.97 c-7.11,6.38-14.48,12.5-21.24,19.22c-2.08,2.07-3.1,5.7-3.62,8.77c-1.92,11.44-3.81,22.92-4.93,34.46 c-0.5,5.16,1.06,10.49,1.28,15.75c0.23,5.7,0.39,11.47-0.15,17.13c-1.15,12.11-2.83,24.17-4.11,36.27c-0.18,1.72,0.8,3.53,1.13,5.33 c0.88,4.76-0.22,6.23-4.71,5.17c-4.53-1.06-8.86-2.94-14.27-4.8c1.98-1.62,2.84-2.83,3.94-3.12c5.42-1.44,7-5.2,6.39-10.23 c-1.39-11.39-3.15-22.73-4.24-34.14c-0.53-5.56,0.16-11.23,0.24-16.85c0.06-4.49,0.01-8.97,0.01-14.72 c-2.79,1.53-5.2,2.27-6.79,3.83c-4.26,4.19-8.39,8.56-12.11,13.22c-1.55,1.95-2.19,4.76-2.79,7.29c-0.47,1.99,0.6,5.02-0.48,6.05 c-2.17,2.08-5.2,3.79-8.13,4.38c-3.61,0.73-7.49,0.18-12.26,0.18c6.34-8.69,11.91-16.11,17.22-23.71c3.29-4.71,6.23-9.67,9.24-14.58 c2.15-3.5,3.76-7.4,6.3-10.57c5.38-6.73,6.74-14.28,6.72-22.64C0.88,68.3,1.36,57.91,2.26,47.58c0.69-7.85,2.15-15.67,3.7-23.41 c0.77-3.83,2.89-7.39,3.72-11.22c1.83-8.4-1.9-16-4.38-23.95C2.96-5.34-0.31,0.12-1.5,6c-1.96,9.72-7.34,17.44-12.26,25.57 c-4.39,7.25-8.79,14.52-12.75,22.01c-2.64,5-4.5,10.41-6.83,15.92c-4.82-5.28-4.65-10.59-0.94-16.97 C-21.4,30.4-12.08,6.78-6.17-18.12c1.4-5.88,1.24-12.11,2.23-18.12c1.2-7.27,4.15-9.56,11.39-9.69c8.65-0.14,13.86-4.77,14.48-13.51 c0.35-5.01,0.16-10.11-0.28-15.12c-0.82-9.3,2.49-16.57,10.17-21.69c2.08-1.39,4.78-1.87,7.2-2.76C39.35-99,39.69-99,40.02-99z",
14
+      },
15
+      {
16
+        value: 101,
17
+        symbol:
18
+          "path://M-39,33.03c3.72-9.74,12.97-12.87,20.96-17.43c9.51-5.43,19.2-10.54,28.69-16 c1.77-1.02,3.35-2.85,4.33-4.67C21.44-17,27.82-28.95,33.95-41.04c2.13-4.2,4.95-6.01,9.7-6.09c3.68-0.06,7.52-0.92,10.97-2.25 c5.09-1.95,4.85-5.2,1.1-9.01c-5.12-5.21-10.89-10.1-13.23-17.54c-1.71-5.44,0.78-15.62,4.87-18.74 c4.12-3.15,12.55-3.84,16.69-0.12c3.39,3.04,6.44,7.27,7.8,11.56c1.96,6.16,3.31,12.9,2.99,19.29 c-0.45,9.21,6.35,16.71,15.73,16.97c7.94,0.21,9.27,0.78,10.69,8.61c5.23,28.73,19.4,53.73,32.21,79.33 c1.95,3.9,4.32,7.71,5.51,11.84c1.03,3.61,0.66,7.61,0.91,11.45c-0.73,0.14-1.45,0.28-2.18,0.42c-0.49-1.57-0.98-3.15-1.47-4.72 c-0.22,0.09-0.44,0.19-0.66,0.28c-0.85-2.62-1.7-5.24-2.74-8.45c-0.9,2.53-1.55,4.4-2.21,6.26c-0.41-0.03-0.83-0.06-1.24-0.08 c-0.19-2.78-0.35-5.56-0.56-8.34c-0.67-9.04-7.05-14.8-12.04-21.47c-5.2-6.95-10.31-14.09-14.36-21.73 c-3.56-6.7-5.59-14.21-9-21.29c-3.02,9.7-8.69,18.66-6.3,29.2c0.63,2.78,2.68,5.21,3.87,7.9c4.73,10.64,5.56,22.14,6.92,33.46 c1.21,10.13,1.88,20.38,1.96,30.59c0.06,7.02-1.67,14.04-1.85,21.08c-0.12,4.66,0.83,9.41,1.73,14.03 c1.21,6.22,2.81,12.36,4.28,18.52c0.3,1.26,0.69,2.51,1.23,3.69c3.92,8.54,7.79,17.1,11.88,25.55c1.3,2.67,3.24,5.04,5.07,7.83 c-2.19,0.86-3.64,1.76-5.17,1.97c-3.53,0.47-6.9,0.64-8.13-4.11c-1.71-6.58-3.78-13.07-5.87-19.54c-0.44-1.35-1.6-2.47-3.21-3.33 c0,16.17-7.35,32.86,6.17,48.11c-3.55,0-5.95,0.01-8.36,0c-7.59-0.03-7.66-0.54-7.72-7.64c-0.11-13.74-0.69-27.4-5.27-40.71 c-1.72-5.01-0.38-11.01-1.01-16.49c-0.67-5.79-2.11-11.48-3.08-17.24c-2.52-14.91-12.01-26.06-20.01-38.12 c-5.34-8.06-10.18-16.56-14.25-25.32c-5.18-11.16-5.52-22.61,1.24-33.57c3.68-5.96,3.12-12.27,1.17-18.55 c-2.5-8.03-5.22-16-8.05-24.61c-0.91,1.44-1.76,2.86-2.68,4.24C32.9-10.29,28.04-2.46,22.63,4.96c-5.34,7.34-14.22,8.45-22.08,10.9 c-8.48,2.65-17.2,4.46-23.03,12.01c-1.84,2.39-3.61,4.84-5.41,7.26c-0.39-0.17-0.78-0.34-1.16-0.51c0.81-2.38,1.62-4.76,2.43-7.14 c-0.2-0.22-0.39-0.44-0.59-0.66c-1.24,1.3-2.31,2.88-3.77,3.83c-2.54,1.66-5.33,2.94-8.02,4.37C-39,34.36-39,33.7-39,33.03z",
19
+      },
20
+      {
21
+        value: 89,
22
+        symbol:
23
+          "path://M80,100.49c0,5.23,0.13,10.46-0.03,15.69c-0.2,6.3-0.57,12.6-0.99,18.9 c-0.94,14.08-2.08,28.14-2.87,42.22c-0.41,7.29,4.95,14.31,12.03,16.62c1.22,0.4,2.43,0.84,3.65,2.16c-1.8,0.35-3.59,0.91-5.4,1 c-5.4,0.3-10.83,0.7-16.22,0.42c-1.44-0.07-3.7-2.25-3.95-3.74c-0.56-3.4,0.14-6.98-0.13-10.45c-0.77-9.67-0.8-19.56-3-28.92 c-1.97-8.39-2.18-16.07-0.02-24.35c1.28-4.91,1.34-10.48,0.5-15.52c-2.09-12.71-4.95-25.31-7.65-37.92 c-0.34-1.57-1.3-3.33-2.52-4.33c-3.71-3.01-7.37-6.38-11.62-8.38c-13.61-6.41-19.23-28.93-9.14-42.66 c5.41-7.36,5.32-13.85,0.74-21.4c-4.33-7.14-7.8-14.79-11.71-22.32C16.35-14.03,11.08-4.82,4.94,3.76 C1.8,8.13-2.43,12.19-7.04,14.93c-5.3,3.15-11.39,5.39-17.43,6.76c-9.05,2.05-14.31,7.59-17.67,15.68 c-0.43,1.05-1.13,1.99-1.76,2.95c-0.15,0.22-0.52,0.29-1.8,0.94c0.32-2.2,0.61-3.74,0.74-5.3c0.09-1.14-0.04-2.3-0.07-3.46 c-1.38,0.26-3.21,0.05-4.06,0.86c-2,1.91-3.5,4.33-5.27,6.49c-0.5,0.61-1.22,1.03-1.95,1.61c-1.02-5.19,1.42-10.27,7.11-13.9 C-36.09,19.24-22.82,11.2-9.77,2.82c2.12-1.36,3.99-3.6,5.17-5.85C1.52-14.72,7.44-26.52,13.29-38.35 c2.21-4.48,5.11-7.27,10.48-7.83c3.23-0.34,6.27-2.47,9.89-4.01c-4.23-4.83-8.31-8.74-11.49-13.28c-6.34-9.03-7.03-22.38,3.14-29.92 c6.9-5.12,13.79-4.47,20.85,0.69c6.15,4.5,6.15,11.2,7.55,17.13c1.32,5.6,0.82,11.84,0.1,17.67c-0.73,5.9-0.29,7.53,5.3,8.73 c0.96,0.21,1.99,0.17,2.98,0.19C72.51-48.76,74.44-47.06,76-36.52c1.83,12.35,2.1,25.03,6.99,36.77 c3.28,7.88,6.57,15.79,10.47,23.38c3.66,7.12,8.05,13.87,12.25,20.7c2.97,4.84,3.11,12.13-0.65,17c-1.8-2.05-3.45-3.92-5.01-5.7 c0.04-0.04-0.45,0.53-1.46,1.71C94.83,37.86,80.48,24.72,71.82,8.18c0.46,3.43,0.09,7.26,1.54,10.2c3.95,8.01,1.92,16.67,3.56,24.91 c1.63,8.22,1.87,16.74,3.79,24.88c0.88,3.73,4.32,6.84,6.58,10.25c1.09,1.65,2.2,3.29,3.17,5.01c4.84,8.58,9.09,17.55,14.58,25.69 c7.27,10.79,15.21,21.16,23.39,31.28c6.19,7.67,13.08,14.8,19.92,21.92c2.93,3.04,6.54,5.42,9.96,8.2 c-6.92,4.09-12.67,3.33-19.87-2.17c-1.82-1.39-3.76-2.79-5.87-3.62c-4.12-1.63-4.47-4.54-3.73-8.3c0.26-1.33,0.17-3.42-0.66-4.18 c-7.53-6.87-14.85-14.07-23.04-20.07c-7.75-5.68-12.26-13.2-16.11-21.54c-1.44-3.12-3.31-6.06-5.14-8.98 c-0.5-0.8-1.57-1.24-2.38-1.85C81.01,100.03,80.5,100.26,80,100.49z",
24
+      },
25
+      {
26
+        value: 72,
27
+        symbol:
28
+          "path://M-57,41.03c3.65-4.15,7.17-8.43,10.98-12.42c6.53-6.83,13.31-13.41,19.84-20.23 c1.76-1.84,3.51-3.98,4.4-6.31c3.8-9.99,6.99-20.23,10.99-30.14c2.74-6.79,5.65-13.62,12.37-17.95c4.17-2.68,5.12-7.31,4.29-11.96 c-0.3-1.67-2.02-3.08-3.35-4.97c-2.57,5.59-4.62,10.03-7.21,15.66c-4.79-6.43-9.76-10.83-11.68-16.31 c-1.77-5.04-1.18-11.44,0.04-16.86c1.27-5.62,5.24-9.71,12.03-9.7c1.55,0,3.1-1.68,4.66-2.55c9.3-5.22,20.47-1.53,25.73,7.59 c4.06,7.04,4.84,14.6,5.57,22.26c0.65,6.82-0.32,7.59-8.26,8.11c0,1.97,0,3.96,0,5.95c8.01-0.17,8.01,0.43,12.02,7.52 c2.09,3.69,6.34,6.1,9.41,9.29c2.48,2.58,7.04,3.14,7.24,8c0.29,6.79,0.46,6.78-6.43,11.08c0,15.78-0.02,31.49,0.03,47.2 c0,1.23,0.29,2.51,0.71,3.67c1.64,4.59,3.27,9.19,5.13,13.7c0.79,1.92,1.88,3.83,3.26,5.36c7.54,8.36,15.45,16.41,22.75,24.96 c5.09,5.97,9.05,12.9,14.18,18.84c9.73,11.26,19.47,22.59,30.08,33c8.84,8.67,18.88,16.13,28.51,23.98 c2.52,2.06,5.48,3.58,8.27,5.36c-4.02,3.54-10.94,4.01-16.34,1.62c-4.76-2.11-9.63-4.03-14.6-5.56c-5.6-1.72-6.59-3.72-4.42-9.32 c0.47-1.22-0.12-3.8-1.11-4.5c-7.36-5.15-14.66-10.53-22.55-14.78c-8.49-4.57-15.35-10.3-19.59-19.04 c-4.29-8.84-11.6-14.85-19.48-20.29c-3.2-2.21-6.43-4.4-9.64-6.6c-0.53,0.17-1.05,0.33-1.58,0.5c-0.11,11.17,0.12,22.36-0.45,33.51 c-0.29,5.72-2.33,11.33-3,17.05c-1.68,14.31-3.04,28.65-4.51,42.98c-0.34,3.34,0.94,5.76,4.12,7.18c6.09,2.73,12.14,5.56,18.61,9.26 c-3.96,0.36-7.93,0.72-11.89,1.08c-4.92,0.45-9.91,0.53-14.76,1.42c-6.96,1.28-9.68-0.99-8.69-8.02c1.73-12.28,0.67-24.36-1.4-36.56 c-1.08-6.36-2.02-14.02,0.49-19.47c5.62-12.19,2.4-23.48,0.01-35.2c-2.05-10.04-3.8-20.14-5.9-30.17c-0.32-1.52-1.72-2.91-2.87-4.13 c-3.6-3.83-8.03-7.09-10.85-11.41c-6.61-10.14-2.6-19.6,3.74-28.13c5.27-7.1,6.85-14.1,2.15-21.95c-3.79-6.34-7.53-12.7-11.38-19 c-0.46-0.75-1.41-1.2-2.77-2.3c-3.27,7.28-6.98,13.9-9.24,20.98c-3.58,11.2-12.11,17.05-21.53,22.3c-1.86,1.04-3.57,2.44-5.53,3.21 c-4.29,1.67-6.09,3.88-4.9,9.01c0.69,2.96-1.31,6.55-2.1,9.86c-0.5,0.03-0.99,0.06-1.49,0.08c-0.18-2.57-0.36-5.14-0.66-9.41 c-3.45,4.38-6.11,7.75-9.33,11.84c-1.07-2.08-1.61-3.13-2.15-4.18C-57,43.7-57,42.36-57,41.03z",
29
+      },
30
+    ],
31
+    type: "pictorialBar",
32
+    symbolClip: true,
33
+    symbolBoundingData: 150,
34
+    label: {
35
+      show: true,
36
+      position: "top",
37
+      offset: [0, -20],
38
+      fontSize: 18,
39
+      fontFamily: "Arial",
40
+    },
41
+    markLine: {
42
+      symbol: "none",
43
+      lineStyle: {
44
+        opacity: 0.3,
45
+      },
46
+      data: [
47
+        {
48
+          type: "max",
49
+          label: {
50
+            formatter: "max: {c}",
51
+          },
52
+        },
53
+        {
54
+          type: "min",
55
+          label: {
56
+            formatter: "min: {c}",
57
+          },
58
+        },
59
+      ],
60
+    },
61
+    z: 10,
62
+  },
63
+  {
64
+    name: "typeB",
65
+    data: [
66
+      {
67
+        value: 12,
68
+        symbol:
69
+          "path://M36.7,102.84c-1.17,2.54-2.99,4.98-3.39,7.63c-1.51,9.89-3.31,19.58-1.93,29.95 c0.95,7.15-2.91,14.82-3.57,22.35c-0.64,7.36-0.2,14.86,0.35,22.25c0.12,1.68,2.66,3.17,4.67,5.4c-0.6,0.82-1.5,2.22-2.58,3.48 c-0.96,1.12-1.96,2.35-3.21,3.04c-1.71,0.95-3.71,2.03-5.51,1.9c-1.18-0.08-3.04-2.13-3.16-3.43c-0.44-4.72,0-9.52-0.41-14.25 c-0.94-10.88-2.32-21.72-3.24-32.61c-0.49-5.84-1.63-12.01-0.35-17.54c3.39-14.56,2.8-28.84,0.36-43.4 c-2.71-16.16-1.06-32.4,0.54-48.59c0.91-9.22,4.62-17.36,8.53-25.57c1.32-2.77,1.88-6.84,0.87-9.62C21.89-3.77,18.09-11,14.7-18.38 c-0.56,0.1-1.13,0.21-1.69,0.31C10.17-11.52,6.29-5.2,4.71,1.65C2.05,13.21-4.42,22.3-11.43,31.28c-1.32,1.69-2.51,3.5-3.98,5.04 c-4.85,5.08-3.25,10.98-2.32,16.82c0.25,1.53,0.52,3.06,0.77,4.59c-0.53,0.22-1.07,0.43-1.6,0.65c-1.07-2.09-2.14-4.19-3.28-6.44 c-6.39,2.91-2.67,9.6-5.23,15.16c-1.61-3.31-2.77-5.68-3.93-8.06c0-0.33,0-0.67,0-1c6.96-16.08,14.63-31.9,20.68-48.31 C-5.24-4.07-2.03-18.55,2-32.73c0.36-1.27,0.75-2.53,0.98-3.82c1.36-7.75,4.19-10.23,11.88-10.38c1.76-0.04,3.52-0.21,5.76-0.35 c-0.55-3.95-1.21-7.3-1.45-10.68c-0.61-8.67,0.77-16.69,7.39-23.19c2.18-2.14,4.27-4.82,5.25-7.65c2.39-6.88,11.66-9,16.94-8.12 c5.92,0.99,12.15,7.93,12.16,14.12c0.01,9.89-5.19,17.26-12.24,23.68c-2.17,1.97-5.35,4.77-5.17,6.94c0.31,3.78,4.15,5.66,8.08,6.04 c1.82,0.18,3.7,0.37,5.49,0.1c5.62-0.85,8.8,2.17,10.85,6.73C73.38-27.19,78.46-14.9,84.2-2.91c1.52,3.17,4.52,5.91,7.41,8.09 c7.64,5.77,15.57,11.16,23.45,16.61c2.28,1.58,4.64,3.23,7.21,4.14c5.18,1.84,8.09,5.63,9.82,10.46c0.45,1.24,0.19,3.71-0.6,4.18 c-1.06,0.63-3.15,0.27-4.44-0.38c-7.05-3.54-12.84-8.88-19.14-13.5c-3.5-2.57-7.9-4-12.03-5.6c-9.44-3.66-17.73-8.42-22.5-18.09 c-2.43-4.94-6.09-9.27-9.69-14.61c-1.2,10.98-4.46,20.65,1.14,31.19c6.62,12.47,5.89,26.25,1.21,39.49 c-2.52,7.11-6.5,13.74-8.67,20.94c-1.91,6.33-2.2,13.15-3.23,19.75c-0.72,4.63-0.84,9.48-2.36,13.84 c-2.49,7.16-6.67,13.83-5.84,21.82c0.42,4.02,1.29,7.99,2.1,12.8c-3.74-0.49-7.47-0.4-10.67-1.66c-1.33-0.53-2.43-4.11-2.07-6.01 c1.86-9.94,3.89-19.69,0.07-29.74C34.55,108.63,36.19,105.52,36.7,102.84c1.25-8.45,2.51-16.89,3.71-24.9 c-0.83-0.58-0.85-0.59-0.87-0.61c-0.03,0.16-0.07,0.32-0.09,0.48C38.53,86.15,37.62,94.5,36.7,102.84z",
70
+      },
71
+      {
72
+        value: 44,
73
+        symbol:
74
+          "path://M40.02-99c2.07,1.21,4.26,2.25,6.19,3.66c5.94,4.34,8.23,12.57,4.95,19.79 c-3.21,7.08-6.82,14.03-10.86,20.67c-2.17,3.56-1.25,5.38,1.99,6.36c2.94,0.89,6.36,1.91,9.15,1.21c5.51-1.4,8.33,1.23,10.66,5.29 c4.71,8.22,9.72,16.29,13.84,24.8C81.06-6.65,89,0.4,99.56,5.17C109.82,9.8,120,14.7,129.85,20.15c4.72,2.61,9.09,6.37,10.24,12.97 c-2.89-1.93-5.2-3.75-7.78-5.04c-0.99-0.5-2.6,0.22-4.83,0.5c-5.36-9.35-16.8-9.4-26.74-12.62C91.68,13.04,81.82,11.37,75.66,3 c-5.98-8.13-11.61-16.52-17.4-24.79c-0.46-0.66-0.98-1.27-1.66-2.16c-3.21,7.75-6.78,15-9.12,22.63c-1.15,3.76-0.64,8.37,0.26,12.33 c0.81,3.59,3.01,6.92,4.87,10.22c6.73,11.95,2.41,22.89-2.91,33.75c-0.35,0.72-0.86,1.43-1.46,1.97 c-7.11,6.38-14.48,12.5-21.24,19.22c-2.08,2.07-3.1,5.7-3.62,8.77c-1.92,11.44-3.81,22.92-4.93,34.46 c-0.5,5.16,1.06,10.49,1.28,15.75c0.23,5.7,0.39,11.47-0.15,17.13c-1.15,12.11-2.83,24.17-4.11,36.27c-0.18,1.72,0.8,3.53,1.13,5.33 c0.88,4.76-0.22,6.23-4.71,5.17c-4.53-1.06-8.86-2.94-14.27-4.8c1.98-1.62,2.84-2.83,3.94-3.12c5.42-1.44,7-5.2,6.39-10.23 c-1.39-11.39-3.15-22.73-4.24-34.14c-0.53-5.56,0.16-11.23,0.24-16.85c0.06-4.49,0.01-8.97,0.01-14.72 c-2.79,1.53-5.2,2.27-6.79,3.83c-4.26,4.19-8.39,8.56-12.11,13.22c-1.55,1.95-2.19,4.76-2.79,7.29c-0.47,1.99,0.6,5.02-0.48,6.05 c-2.17,2.08-5.2,3.79-8.13,4.38c-3.61,0.73-7.49,0.18-12.26,0.18c6.34-8.69,11.91-16.11,17.22-23.71c3.29-4.71,6.23-9.67,9.24-14.58 c2.15-3.5,3.76-7.4,6.3-10.57c5.38-6.73,6.74-14.28,6.72-22.64C0.88,68.3,1.36,57.91,2.26,47.58c0.69-7.85,2.15-15.67,3.7-23.41 c0.77-3.83,2.89-7.39,3.72-11.22c1.83-8.4-1.9-16-4.38-23.95C2.96-5.34-0.31,0.12-1.5,6c-1.96,9.72-7.34,17.44-12.26,25.57 c-4.39,7.25-8.79,14.52-12.75,22.01c-2.64,5-4.5,10.41-6.83,15.92c-4.82-5.28-4.65-10.59-0.94-16.97 C-21.4,30.4-12.08,6.78-6.17-18.12c1.4-5.88,1.24-12.11,2.23-18.12c1.2-7.27,4.15-9.56,11.39-9.69c8.65-0.14,13.86-4.77,14.48-13.51 c0.35-5.01,0.16-10.11-0.28-15.12c-0.82-9.3,2.49-16.57,10.17-21.69c2.08-1.39,4.78-1.87,7.2-2.76C39.35-99,39.69-99,40.02-99z",
75
+      },
76
+      {
77
+        value: 131,
78
+        symbol:
79
+          "path://M-39,33.03c3.72-9.74,12.97-12.87,20.96-17.43c9.51-5.43,19.2-10.54,28.69-16 c1.77-1.02,3.35-2.85,4.33-4.67C21.44-17,27.82-28.95,33.95-41.04c2.13-4.2,4.95-6.01,9.7-6.09c3.68-0.06,7.52-0.92,10.97-2.25 c5.09-1.95,4.85-5.2,1.1-9.01c-5.12-5.21-10.89-10.1-13.23-17.54c-1.71-5.44,0.78-15.62,4.87-18.74 c4.12-3.15,12.55-3.84,16.69-0.12c3.39,3.04,6.44,7.27,7.8,11.56c1.96,6.16,3.31,12.9,2.99,19.29 c-0.45,9.21,6.35,16.71,15.73,16.97c7.94,0.21,9.27,0.78,10.69,8.61c5.23,28.73,19.4,53.73,32.21,79.33 c1.95,3.9,4.32,7.71,5.51,11.84c1.03,3.61,0.66,7.61,0.91,11.45c-0.73,0.14-1.45,0.28-2.18,0.42c-0.49-1.57-0.98-3.15-1.47-4.72 c-0.22,0.09-0.44,0.19-0.66,0.28c-0.85-2.62-1.7-5.24-2.74-8.45c-0.9,2.53-1.55,4.4-2.21,6.26c-0.41-0.03-0.83-0.06-1.24-0.08 c-0.19-2.78-0.35-5.56-0.56-8.34c-0.67-9.04-7.05-14.8-12.04-21.47c-5.2-6.95-10.31-14.09-14.36-21.73 c-3.56-6.7-5.59-14.21-9-21.29c-3.02,9.7-8.69,18.66-6.3,29.2c0.63,2.78,2.68,5.21,3.87,7.9c4.73,10.64,5.56,22.14,6.92,33.46 c1.21,10.13,1.88,20.38,1.96,30.59c0.06,7.02-1.67,14.04-1.85,21.08c-0.12,4.66,0.83,9.41,1.73,14.03 c1.21,6.22,2.81,12.36,4.28,18.52c0.3,1.26,0.69,2.51,1.23,3.69c3.92,8.54,7.79,17.1,11.88,25.55c1.3,2.67,3.24,5.04,5.07,7.83 c-2.19,0.86-3.64,1.76-5.17,1.97c-3.53,0.47-6.9,0.64-8.13-4.11c-1.71-6.58-3.78-13.07-5.87-19.54c-0.44-1.35-1.6-2.47-3.21-3.33 c0,16.17-7.35,32.86,6.17,48.11c-3.55,0-5.95,0.01-8.36,0c-7.59-0.03-7.66-0.54-7.72-7.64c-0.11-13.74-0.69-27.4-5.27-40.71 c-1.72-5.01-0.38-11.01-1.01-16.49c-0.67-5.79-2.11-11.48-3.08-17.24c-2.52-14.91-12.01-26.06-20.01-38.12 c-5.34-8.06-10.18-16.56-14.25-25.32c-5.18-11.16-5.52-22.61,1.24-33.57c3.68-5.96,3.12-12.27,1.17-18.55 c-2.5-8.03-5.22-16-8.05-24.61c-0.91,1.44-1.76,2.86-2.68,4.24C32.9-10.29,28.04-2.46,22.63,4.96c-5.34,7.34-14.22,8.45-22.08,10.9 c-8.48,2.65-17.2,4.46-23.03,12.01c-1.84,2.39-3.61,4.84-5.41,7.26c-0.39-0.17-0.78-0.34-1.16-0.51c0.81-2.38,1.62-4.76,2.43-7.14 c-0.2-0.22-0.39-0.44-0.59-0.66c-1.24,1.3-2.31,2.88-3.77,3.83c-2.54,1.66-5.33,2.94-8.02,4.37C-39,34.36-39,33.7-39,33.03z",
80
+      },
81
+      {
82
+        value: 33,
83
+        symbol:
84
+          "path://M80,100.49c0,5.23,0.13,10.46-0.03,15.69c-0.2,6.3-0.57,12.6-0.99,18.9 c-0.94,14.08-2.08,28.14-2.87,42.22c-0.41,7.29,4.95,14.31,12.03,16.62c1.22,0.4,2.43,0.84,3.65,2.16c-1.8,0.35-3.59,0.91-5.4,1 c-5.4,0.3-10.83,0.7-16.22,0.42c-1.44-0.07-3.7-2.25-3.95-3.74c-0.56-3.4,0.14-6.98-0.13-10.45c-0.77-9.67-0.8-19.56-3-28.92 c-1.97-8.39-2.18-16.07-0.02-24.35c1.28-4.91,1.34-10.48,0.5-15.52c-2.09-12.71-4.95-25.31-7.65-37.92 c-0.34-1.57-1.3-3.33-2.52-4.33c-3.71-3.01-7.37-6.38-11.62-8.38c-13.61-6.41-19.23-28.93-9.14-42.66 c5.41-7.36,5.32-13.85,0.74-21.4c-4.33-7.14-7.8-14.79-11.71-22.32C16.35-14.03,11.08-4.82,4.94,3.76 C1.8,8.13-2.43,12.19-7.04,14.93c-5.3,3.15-11.39,5.39-17.43,6.76c-9.05,2.05-14.31,7.59-17.67,15.68 c-0.43,1.05-1.13,1.99-1.76,2.95c-0.15,0.22-0.52,0.29-1.8,0.94c0.32-2.2,0.61-3.74,0.74-5.3c0.09-1.14-0.04-2.3-0.07-3.46 c-1.38,0.26-3.21,0.05-4.06,0.86c-2,1.91-3.5,4.33-5.27,6.49c-0.5,0.61-1.22,1.03-1.95,1.61c-1.02-5.19,1.42-10.27,7.11-13.9 C-36.09,19.24-22.82,11.2-9.77,2.82c2.12-1.36,3.99-3.6,5.17-5.85C1.52-14.72,7.44-26.52,13.29-38.35 c2.21-4.48,5.11-7.27,10.48-7.83c3.23-0.34,6.27-2.47,9.89-4.01c-4.23-4.83-8.31-8.74-11.49-13.28c-6.34-9.03-7.03-22.38,3.14-29.92 c6.9-5.12,13.79-4.47,20.85,0.69c6.15,4.5,6.15,11.2,7.55,17.13c1.32,5.6,0.82,11.84,0.1,17.67c-0.73,5.9-0.29,7.53,5.3,8.73 c0.96,0.21,1.99,0.17,2.98,0.19C72.51-48.76,74.44-47.06,76-36.52c1.83,12.35,2.1,25.03,6.99,36.77 c3.28,7.88,6.57,15.79,10.47,23.38c3.66,7.12,8.05,13.87,12.25,20.7c2.97,4.84,3.11,12.13-0.65,17c-1.8-2.05-3.45-3.92-5.01-5.7 c0.04-0.04-0.45,0.53-1.46,1.71C94.83,37.86,80.48,24.72,71.82,8.18c0.46,3.43,0.09,7.26,1.54,10.2c3.95,8.01,1.92,16.67,3.56,24.91 c1.63,8.22,1.87,16.74,3.79,24.88c0.88,3.73,4.32,6.84,6.58,10.25c1.09,1.65,2.2,3.29,3.17,5.01c4.84,8.58,9.09,17.55,14.58,25.69 c7.27,10.79,15.21,21.16,23.39,31.28c6.19,7.67,13.08,14.8,19.92,21.92c2.93,3.04,6.54,5.42,9.96,8.2 c-6.92,4.09-12.67,3.33-19.87-2.17c-1.82-1.39-3.76-2.79-5.87-3.62c-4.12-1.63-4.47-4.54-3.73-8.3c0.26-1.33,0.17-3.42-0.66-4.18 c-7.53-6.87-14.85-14.07-23.04-20.07c-7.75-5.68-12.26-13.2-16.11-21.54c-1.44-3.12-3.31-6.06-5.14-8.98 c-0.5-0.8-1.57-1.24-2.38-1.85C81.01,100.03,80.5,100.26,80,100.49z",
85
+      },
86
+      {
87
+        value: 142,
88
+        symbol:
89
+          "path://M-57,41.03c3.65-4.15,7.17-8.43,10.98-12.42c6.53-6.83,13.31-13.41,19.84-20.23 c1.76-1.84,3.51-3.98,4.4-6.31c3.8-9.99,6.99-20.23,10.99-30.14c2.74-6.79,5.65-13.62,12.37-17.95c4.17-2.68,5.12-7.31,4.29-11.96 c-0.3-1.67-2.02-3.08-3.35-4.97c-2.57,5.59-4.62,10.03-7.21,15.66c-4.79-6.43-9.76-10.83-11.68-16.31 c-1.77-5.04-1.18-11.44,0.04-16.86c1.27-5.62,5.24-9.71,12.03-9.7c1.55,0,3.1-1.68,4.66-2.55c9.3-5.22,20.47-1.53,25.73,7.59 c4.06,7.04,4.84,14.6,5.57,22.26c0.65,6.82-0.32,7.59-8.26,8.11c0,1.97,0,3.96,0,5.95c8.01-0.17,8.01,0.43,12.02,7.52 c2.09,3.69,6.34,6.1,9.41,9.29c2.48,2.58,7.04,3.14,7.24,8c0.29,6.79,0.46,6.78-6.43,11.08c0,15.78-0.02,31.49,0.03,47.2 c0,1.23,0.29,2.51,0.71,3.67c1.64,4.59,3.27,9.19,5.13,13.7c0.79,1.92,1.88,3.83,3.26,5.36c7.54,8.36,15.45,16.41,22.75,24.96 c5.09,5.97,9.05,12.9,14.18,18.84c9.73,11.26,19.47,22.59,30.08,33c8.84,8.67,18.88,16.13,28.51,23.98 c2.52,2.06,5.48,3.58,8.27,5.36c-4.02,3.54-10.94,4.01-16.34,1.62c-4.76-2.11-9.63-4.03-14.6-5.56c-5.6-1.72-6.59-3.72-4.42-9.32 c0.47-1.22-0.12-3.8-1.11-4.5c-7.36-5.15-14.66-10.53-22.55-14.78c-8.49-4.57-15.35-10.3-19.59-19.04 c-4.29-8.84-11.6-14.85-19.48-20.29c-3.2-2.21-6.43-4.4-9.64-6.6c-0.53,0.17-1.05,0.33-1.58,0.5c-0.11,11.17,0.12,22.36-0.45,33.51 c-0.29,5.72-2.33,11.33-3,17.05c-1.68,14.31-3.04,28.65-4.51,42.98c-0.34,3.34,0.94,5.76,4.12,7.18c6.09,2.73,12.14,5.56,18.61,9.26 c-3.96,0.36-7.93,0.72-11.89,1.08c-4.92,0.45-9.91,0.53-14.76,1.42c-6.96,1.28-9.68-0.99-8.69-8.02c1.73-12.28,0.67-24.36-1.4-36.56 c-1.08-6.36-2.02-14.02,0.49-19.47c5.62-12.19,2.4-23.48,0.01-35.2c-2.05-10.04-3.8-20.14-5.9-30.17c-0.32-1.52-1.72-2.91-2.87-4.13 c-3.6-3.83-8.03-7.09-10.85-11.41c-6.61-10.14-2.6-19.6,3.74-28.13c5.27-7.1,6.85-14.1,2.15-21.95c-3.79-6.34-7.53-12.7-11.38-19 c-0.46-0.75-1.41-1.2-2.77-2.3c-3.27,7.28-6.98,13.9-9.24,20.98c-3.58,11.2-12.11,17.05-21.53,22.3c-1.86,1.04-3.57,2.44-5.53,3.21 c-4.29,1.67-6.09,3.88-4.9,9.01c0.69,2.96-1.31,6.55-2.1,9.86c-0.5,0.03-0.99,0.06-1.49,0.08c-0.18-2.57-0.36-5.14-0.66-9.41 c-3.45,4.38-6.11,7.75-9.33,11.84c-1.07-2.08-1.61-3.13-2.15-4.18C-57,43.7-57,42.36-57,41.03z",
90
+      },
91
+    ],
92
+    type: "pictorialBar",
93
+    symbolClip: true,
94
+    symbolBoundingData: 150,
95
+    label: {
96
+      show: true,
97
+      position: "top",
98
+      offset: [0, -20],
99
+      fontSize: 18,
100
+      fontFamily: "Arial",
101
+    },
102
+    markLine: {
103
+      symbol: "none",
104
+      lineStyle: {
105
+        opacity: 0.3,
106
+      },
107
+      data: [
108
+        {
109
+          type: "max",
110
+          label: {
111
+            formatter: "max: {c}",
112
+          },
113
+        },
114
+        {
115
+          type: "min",
116
+          label: {
117
+            formatter: "min: {c}",
118
+          },
119
+        },
120
+      ],
121
+    },
122
+    z: 10,
123
+  },
124
+  {
125
+    name: "full",
126
+    data: [
127
+      {
128
+        value: 1,
129
+        symbol:
130
+          "path://M36.7,102.84c-1.17,2.54-2.99,4.98-3.39,7.63c-1.51,9.89-3.31,19.58-1.93,29.95 c0.95,7.15-2.91,14.82-3.57,22.35c-0.64,7.36-0.2,14.86,0.35,22.25c0.12,1.68,2.66,3.17,4.67,5.4c-0.6,0.82-1.5,2.22-2.58,3.48 c-0.96,1.12-1.96,2.35-3.21,3.04c-1.71,0.95-3.71,2.03-5.51,1.9c-1.18-0.08-3.04-2.13-3.16-3.43c-0.44-4.72,0-9.52-0.41-14.25 c-0.94-10.88-2.32-21.72-3.24-32.61c-0.49-5.84-1.63-12.01-0.35-17.54c3.39-14.56,2.8-28.84,0.36-43.4 c-2.71-16.16-1.06-32.4,0.54-48.59c0.91-9.22,4.62-17.36,8.53-25.57c1.32-2.77,1.88-6.84,0.87-9.62C21.89-3.77,18.09-11,14.7-18.38 c-0.56,0.1-1.13,0.21-1.69,0.31C10.17-11.52,6.29-5.2,4.71,1.65C2.05,13.21-4.42,22.3-11.43,31.28c-1.32,1.69-2.51,3.5-3.98,5.04 c-4.85,5.08-3.25,10.98-2.32,16.82c0.25,1.53,0.52,3.06,0.77,4.59c-0.53,0.22-1.07,0.43-1.6,0.65c-1.07-2.09-2.14-4.19-3.28-6.44 c-6.39,2.91-2.67,9.6-5.23,15.16c-1.61-3.31-2.77-5.68-3.93-8.06c0-0.33,0-0.67,0-1c6.96-16.08,14.63-31.9,20.68-48.31 C-5.24-4.07-2.03-18.55,2-32.73c0.36-1.27,0.75-2.53,0.98-3.82c1.36-7.75,4.19-10.23,11.88-10.38c1.76-0.04,3.52-0.21,5.76-0.35 c-0.55-3.95-1.21-7.3-1.45-10.68c-0.61-8.67,0.77-16.69,7.39-23.19c2.18-2.14,4.27-4.82,5.25-7.65c2.39-6.88,11.66-9,16.94-8.12 c5.92,0.99,12.15,7.93,12.16,14.12c0.01,9.89-5.19,17.26-12.24,23.68c-2.17,1.97-5.35,4.77-5.17,6.94c0.31,3.78,4.15,5.66,8.08,6.04 c1.82,0.18,3.7,0.37,5.49,0.1c5.62-0.85,8.8,2.17,10.85,6.73C73.38-27.19,78.46-14.9,84.2-2.91c1.52,3.17,4.52,5.91,7.41,8.09 c7.64,5.77,15.57,11.16,23.45,16.61c2.28,1.58,4.64,3.23,7.21,4.14c5.18,1.84,8.09,5.63,9.82,10.46c0.45,1.24,0.19,3.71-0.6,4.18 c-1.06,0.63-3.15,0.27-4.44-0.38c-7.05-3.54-12.84-8.88-19.14-13.5c-3.5-2.57-7.9-4-12.03-5.6c-9.44-3.66-17.73-8.42-22.5-18.09 c-2.43-4.94-6.09-9.27-9.69-14.61c-1.2,10.98-4.46,20.65,1.14,31.19c6.62,12.47,5.89,26.25,1.21,39.49 c-2.52,7.11-6.5,13.74-8.67,20.94c-1.91,6.33-2.2,13.15-3.23,19.75c-0.72,4.63-0.84,9.48-2.36,13.84 c-2.49,7.16-6.67,13.83-5.84,21.82c0.42,4.02,1.29,7.99,2.1,12.8c-3.74-0.49-7.47-0.4-10.67-1.66c-1.33-0.53-2.43-4.11-2.07-6.01 c1.86-9.94,3.89-19.69,0.07-29.74C34.55,108.63,36.19,105.52,36.7,102.84c1.25-8.45,2.51-16.89,3.71-24.9 c-0.83-0.58-0.85-0.59-0.87-0.61c-0.03,0.16-0.07,0.32-0.09,0.48C38.53,86.15,37.62,94.5,36.7,102.84z",
131
+      },
132
+      {
133
+        value: 1,
134
+        symbol:
135
+          "path://M40.02-99c2.07,1.21,4.26,2.25,6.19,3.66c5.94,4.34,8.23,12.57,4.95,19.79 c-3.21,7.08-6.82,14.03-10.86,20.67c-2.17,3.56-1.25,5.38,1.99,6.36c2.94,0.89,6.36,1.91,9.15,1.21c5.51-1.4,8.33,1.23,10.66,5.29 c4.71,8.22,9.72,16.29,13.84,24.8C81.06-6.65,89,0.4,99.56,5.17C109.82,9.8,120,14.7,129.85,20.15c4.72,2.61,9.09,6.37,10.24,12.97 c-2.89-1.93-5.2-3.75-7.78-5.04c-0.99-0.5-2.6,0.22-4.83,0.5c-5.36-9.35-16.8-9.4-26.74-12.62C91.68,13.04,81.82,11.37,75.66,3 c-5.98-8.13-11.61-16.52-17.4-24.79c-0.46-0.66-0.98-1.27-1.66-2.16c-3.21,7.75-6.78,15-9.12,22.63c-1.15,3.76-0.64,8.37,0.26,12.33 c0.81,3.59,3.01,6.92,4.87,10.22c6.73,11.95,2.41,22.89-2.91,33.75c-0.35,0.72-0.86,1.43-1.46,1.97 c-7.11,6.38-14.48,12.5-21.24,19.22c-2.08,2.07-3.1,5.7-3.62,8.77c-1.92,11.44-3.81,22.92-4.93,34.46 c-0.5,5.16,1.06,10.49,1.28,15.75c0.23,5.7,0.39,11.47-0.15,17.13c-1.15,12.11-2.83,24.17-4.11,36.27c-0.18,1.72,0.8,3.53,1.13,5.33 c0.88,4.76-0.22,6.23-4.71,5.17c-4.53-1.06-8.86-2.94-14.27-4.8c1.98-1.62,2.84-2.83,3.94-3.12c5.42-1.44,7-5.2,6.39-10.23 c-1.39-11.39-3.15-22.73-4.24-34.14c-0.53-5.56,0.16-11.23,0.24-16.85c0.06-4.49,0.01-8.97,0.01-14.72 c-2.79,1.53-5.2,2.27-6.79,3.83c-4.26,4.19-8.39,8.56-12.11,13.22c-1.55,1.95-2.19,4.76-2.79,7.29c-0.47,1.99,0.6,5.02-0.48,6.05 c-2.17,2.08-5.2,3.79-8.13,4.38c-3.61,0.73-7.49,0.18-12.26,0.18c6.34-8.69,11.91-16.11,17.22-23.71c3.29-4.71,6.23-9.67,9.24-14.58 c2.15-3.5,3.76-7.4,6.3-10.57c5.38-6.73,6.74-14.28,6.72-22.64C0.88,68.3,1.36,57.91,2.26,47.58c0.69-7.85,2.15-15.67,3.7-23.41 c0.77-3.83,2.89-7.39,3.72-11.22c1.83-8.4-1.9-16-4.38-23.95C2.96-5.34-0.31,0.12-1.5,6c-1.96,9.72-7.34,17.44-12.26,25.57 c-4.39,7.25-8.79,14.52-12.75,22.01c-2.64,5-4.5,10.41-6.83,15.92c-4.82-5.28-4.65-10.59-0.94-16.97 C-21.4,30.4-12.08,6.78-6.17-18.12c1.4-5.88,1.24-12.11,2.23-18.12c1.2-7.27,4.15-9.56,11.39-9.69c8.65-0.14,13.86-4.77,14.48-13.51 c0.35-5.01,0.16-10.11-0.28-15.12c-0.82-9.3,2.49-16.57,10.17-21.69c2.08-1.39,4.78-1.87,7.2-2.76C39.35-99,39.69-99,40.02-99z",
136
+      },
137
+      {
138
+        value: 1,
139
+        symbol:
140
+          "path://M-39,33.03c3.72-9.74,12.97-12.87,20.96-17.43c9.51-5.43,19.2-10.54,28.69-16 c1.77-1.02,3.35-2.85,4.33-4.67C21.44-17,27.82-28.95,33.95-41.04c2.13-4.2,4.95-6.01,9.7-6.09c3.68-0.06,7.52-0.92,10.97-2.25 c5.09-1.95,4.85-5.2,1.1-9.01c-5.12-5.21-10.89-10.1-13.23-17.54c-1.71-5.44,0.78-15.62,4.87-18.74 c4.12-3.15,12.55-3.84,16.69-0.12c3.39,3.04,6.44,7.27,7.8,11.56c1.96,6.16,3.31,12.9,2.99,19.29 c-0.45,9.21,6.35,16.71,15.73,16.97c7.94,0.21,9.27,0.78,10.69,8.61c5.23,28.73,19.4,53.73,32.21,79.33 c1.95,3.9,4.32,7.71,5.51,11.84c1.03,3.61,0.66,7.61,0.91,11.45c-0.73,0.14-1.45,0.28-2.18,0.42c-0.49-1.57-0.98-3.15-1.47-4.72 c-0.22,0.09-0.44,0.19-0.66,0.28c-0.85-2.62-1.7-5.24-2.74-8.45c-0.9,2.53-1.55,4.4-2.21,6.26c-0.41-0.03-0.83-0.06-1.24-0.08 c-0.19-2.78-0.35-5.56-0.56-8.34c-0.67-9.04-7.05-14.8-12.04-21.47c-5.2-6.95-10.31-14.09-14.36-21.73 c-3.56-6.7-5.59-14.21-9-21.29c-3.02,9.7-8.69,18.66-6.3,29.2c0.63,2.78,2.68,5.21,3.87,7.9c4.73,10.64,5.56,22.14,6.92,33.46 c1.21,10.13,1.88,20.38,1.96,30.59c0.06,7.02-1.67,14.04-1.85,21.08c-0.12,4.66,0.83,9.41,1.73,14.03 c1.21,6.22,2.81,12.36,4.28,18.52c0.3,1.26,0.69,2.51,1.23,3.69c3.92,8.54,7.79,17.1,11.88,25.55c1.3,2.67,3.24,5.04,5.07,7.83 c-2.19,0.86-3.64,1.76-5.17,1.97c-3.53,0.47-6.9,0.64-8.13-4.11c-1.71-6.58-3.78-13.07-5.87-19.54c-0.44-1.35-1.6-2.47-3.21-3.33 c0,16.17-7.35,32.86,6.17,48.11c-3.55,0-5.95,0.01-8.36,0c-7.59-0.03-7.66-0.54-7.72-7.64c-0.11-13.74-0.69-27.4-5.27-40.71 c-1.72-5.01-0.38-11.01-1.01-16.49c-0.67-5.79-2.11-11.48-3.08-17.24c-2.52-14.91-12.01-26.06-20.01-38.12 c-5.34-8.06-10.18-16.56-14.25-25.32c-5.18-11.16-5.52-22.61,1.24-33.57c3.68-5.96,3.12-12.27,1.17-18.55 c-2.5-8.03-5.22-16-8.05-24.61c-0.91,1.44-1.76,2.86-2.68,4.24C32.9-10.29,28.04-2.46,22.63,4.96c-5.34,7.34-14.22,8.45-22.08,10.9 c-8.48,2.65-17.2,4.46-23.03,12.01c-1.84,2.39-3.61,4.84-5.41,7.26c-0.39-0.17-0.78-0.34-1.16-0.51c0.81-2.38,1.62-4.76,2.43-7.14 c-0.2-0.22-0.39-0.44-0.59-0.66c-1.24,1.3-2.31,2.88-3.77,3.83c-2.54,1.66-5.33,2.94-8.02,4.37C-39,34.36-39,33.7-39,33.03z",
141
+      },
142
+      {
143
+        value: 1,
144
+        symbol:
145
+          "path://M80,100.49c0,5.23,0.13,10.46-0.03,15.69c-0.2,6.3-0.57,12.6-0.99,18.9 c-0.94,14.08-2.08,28.14-2.87,42.22c-0.41,7.29,4.95,14.31,12.03,16.62c1.22,0.4,2.43,0.84,3.65,2.16c-1.8,0.35-3.59,0.91-5.4,1 c-5.4,0.3-10.83,0.7-16.22,0.42c-1.44-0.07-3.7-2.25-3.95-3.74c-0.56-3.4,0.14-6.98-0.13-10.45c-0.77-9.67-0.8-19.56-3-28.92 c-1.97-8.39-2.18-16.07-0.02-24.35c1.28-4.91,1.34-10.48,0.5-15.52c-2.09-12.71-4.95-25.31-7.65-37.92 c-0.34-1.57-1.3-3.33-2.52-4.33c-3.71-3.01-7.37-6.38-11.62-8.38c-13.61-6.41-19.23-28.93-9.14-42.66 c5.41-7.36,5.32-13.85,0.74-21.4c-4.33-7.14-7.8-14.79-11.71-22.32C16.35-14.03,11.08-4.82,4.94,3.76 C1.8,8.13-2.43,12.19-7.04,14.93c-5.3,3.15-11.39,5.39-17.43,6.76c-9.05,2.05-14.31,7.59-17.67,15.68 c-0.43,1.05-1.13,1.99-1.76,2.95c-0.15,0.22-0.52,0.29-1.8,0.94c0.32-2.2,0.61-3.74,0.74-5.3c0.09-1.14-0.04-2.3-0.07-3.46 c-1.38,0.26-3.21,0.05-4.06,0.86c-2,1.91-3.5,4.33-5.27,6.49c-0.5,0.61-1.22,1.03-1.95,1.61c-1.02-5.19,1.42-10.27,7.11-13.9 C-36.09,19.24-22.82,11.2-9.77,2.82c2.12-1.36,3.99-3.6,5.17-5.85C1.52-14.72,7.44-26.52,13.29-38.35 c2.21-4.48,5.11-7.27,10.48-7.83c3.23-0.34,6.27-2.47,9.89-4.01c-4.23-4.83-8.31-8.74-11.49-13.28c-6.34-9.03-7.03-22.38,3.14-29.92 c6.9-5.12,13.79-4.47,20.85,0.69c6.15,4.5,6.15,11.2,7.55,17.13c1.32,5.6,0.82,11.84,0.1,17.67c-0.73,5.9-0.29,7.53,5.3,8.73 c0.96,0.21,1.99,0.17,2.98,0.19C72.51-48.76,74.44-47.06,76-36.52c1.83,12.35,2.1,25.03,6.99,36.77 c3.28,7.88,6.57,15.79,10.47,23.38c3.66,7.12,8.05,13.87,12.25,20.7c2.97,4.84,3.11,12.13-0.65,17c-1.8-2.05-3.45-3.92-5.01-5.7 c0.04-0.04-0.45,0.53-1.46,1.71C94.83,37.86,80.48,24.72,71.82,8.18c0.46,3.43,0.09,7.26,1.54,10.2c3.95,8.01,1.92,16.67,3.56,24.91 c1.63,8.22,1.87,16.74,3.79,24.88c0.88,3.73,4.32,6.84,6.58,10.25c1.09,1.65,2.2,3.29,3.17,5.01c4.84,8.58,9.09,17.55,14.58,25.69 c7.27,10.79,15.21,21.16,23.39,31.28c6.19,7.67,13.08,14.8,19.92,21.92c2.93,3.04,6.54,5.42,9.96,8.2 c-6.92,4.09-12.67,3.33-19.87-2.17c-1.82-1.39-3.76-2.79-5.87-3.62c-4.12-1.63-4.47-4.54-3.73-8.3c0.26-1.33,0.17-3.42-0.66-4.18 c-7.53-6.87-14.85-14.07-23.04-20.07c-7.75-5.68-12.26-13.2-16.11-21.54c-1.44-3.12-3.31-6.06-5.14-8.98 c-0.5-0.8-1.57-1.24-2.38-1.85C81.01,100.03,80.5,100.26,80,100.49z",
146
+      },
147
+      {
148
+        value: 1,
149
+        symbol:
150
+          "path://M-57,41.03c3.65-4.15,7.17-8.43,10.98-12.42c6.53-6.83,13.31-13.41,19.84-20.23 c1.76-1.84,3.51-3.98,4.4-6.31c3.8-9.99,6.99-20.23,10.99-30.14c2.74-6.79,5.65-13.62,12.37-17.95c4.17-2.68,5.12-7.31,4.29-11.96 c-0.3-1.67-2.02-3.08-3.35-4.97c-2.57,5.59-4.62,10.03-7.21,15.66c-4.79-6.43-9.76-10.83-11.68-16.31 c-1.77-5.04-1.18-11.44,0.04-16.86c1.27-5.62,5.24-9.71,12.03-9.7c1.55,0,3.1-1.68,4.66-2.55c9.3-5.22,20.47-1.53,25.73,7.59 c4.06,7.04,4.84,14.6,5.57,22.26c0.65,6.82-0.32,7.59-8.26,8.11c0,1.97,0,3.96,0,5.95c8.01-0.17,8.01,0.43,12.02,7.52 c2.09,3.69,6.34,6.1,9.41,9.29c2.48,2.58,7.04,3.14,7.24,8c0.29,6.79,0.46,6.78-6.43,11.08c0,15.78-0.02,31.49,0.03,47.2 c0,1.23,0.29,2.51,0.71,3.67c1.64,4.59,3.27,9.19,5.13,13.7c0.79,1.92,1.88,3.83,3.26,5.36c7.54,8.36,15.45,16.41,22.75,24.96 c5.09,5.97,9.05,12.9,14.18,18.84c9.73,11.26,19.47,22.59,30.08,33c8.84,8.67,18.88,16.13,28.51,23.98 c2.52,2.06,5.48,3.58,8.27,5.36c-4.02,3.54-10.94,4.01-16.34,1.62c-4.76-2.11-9.63-4.03-14.6-5.56c-5.6-1.72-6.59-3.72-4.42-9.32 c0.47-1.22-0.12-3.8-1.11-4.5c-7.36-5.15-14.66-10.53-22.55-14.78c-8.49-4.57-15.35-10.3-19.59-19.04 c-4.29-8.84-11.6-14.85-19.48-20.29c-3.2-2.21-6.43-4.4-9.64-6.6c-0.53,0.17-1.05,0.33-1.58,0.5c-0.11,11.17,0.12,22.36-0.45,33.51 c-0.29,5.72-2.33,11.33-3,17.05c-1.68,14.31-3.04,28.65-4.51,42.98c-0.34,3.34,0.94,5.76,4.12,7.18c6.09,2.73,12.14,5.56,18.61,9.26 c-3.96,0.36-7.93,0.72-11.89,1.08c-4.92,0.45-9.91,0.53-14.76,1.42c-6.96,1.28-9.68-0.99-8.69-8.02c1.73-12.28,0.67-24.36-1.4-36.56 c-1.08-6.36-2.02-14.02,0.49-19.47c5.62-12.19,2.4-23.48,0.01-35.2c-2.05-10.04-3.8-20.14-5.9-30.17c-0.32-1.52-1.72-2.91-2.87-4.13 c-3.6-3.83-8.03-7.09-10.85-11.41c-6.61-10.14-2.6-19.6,3.74-28.13c5.27-7.1,6.85-14.1,2.15-21.95c-3.79-6.34-7.53-12.7-11.38-19 c-0.46-0.75-1.41-1.2-2.77-2.3c-3.27,7.28-6.98,13.9-9.24,20.98c-3.58,11.2-12.11,17.05-21.53,22.3c-1.86,1.04-3.57,2.44-5.53,3.21 c-4.29,1.67-6.09,3.88-4.9,9.01c0.69,2.96-1.31,6.55-2.1,9.86c-0.5,0.03-0.99,0.06-1.49,0.08c-0.18-2.57-0.36-5.14-0.66-9.41 c-3.45,4.38-6.11,7.75-9.33,11.84c-1.07-2.08-1.61-3.13-2.15-4.18C-57,43.7-57,42.36-57,41.03z",
151
+      },
152
+    ],
153
+    type: "pictorialBar",
154
+    symbolClip: true,
155
+    symbolBoundingData: 150,
156
+    label: {
157
+      show: true,
158
+      position: "top",
159
+      offset: [0, -20],
160
+      fontSize: 18,
161
+      fontFamily: "Arial",
162
+    },
163
+    markLine: {
164
+      symbol: "none",
165
+      lineStyle: {
166
+        opacity: 0.3,
167
+      },
168
+      data: [
169
+        {
170
+          type: "max",
171
+          label: {
172
+            formatter: "max: {c}",
173
+          },
174
+        },
175
+        {
176
+          type: "min",
177
+          label: {
178
+            formatter: "min: {c}",
179
+          },
180
+        },
181
+      ],
182
+    },
183
+    z: 10,
184
+    animationDuration: 0,
185
+    itemStyle: {
186
+      color: "#ccc",
187
+    },
188
+  },
189
+];

+ 105
- 0
src/chart/echarts/commonOptions/animation.js Näytä tiedosto

@@ -0,0 +1,105 @@
1
+let config = {
2
+	styleToCom:{
3
+		name: '动画',
4
+		sub: {
5
+            enterAnimate:{
6
+                name:'入场动画',
7
+                sub:{
8
+                    isAniamte: {
9
+                        name: '使用动画',
10
+                        defaultValue:false,
11
+                        comType:'radio',
12
+                        comInfo:[{
13
+                            name:'是',
14
+                            value:true
15
+                        },{
16
+                            name:'否',
17
+                            value:false
18
+                        }]
19
+                    },
20
+                    delayTime: {
21
+                        name: '系列间延时时间',
22
+                        comType: 'input',
23
+                        defaultValue: 1000
24
+                    },
25
+                    duringTime: {
26
+                        name: '动画持续时间',
27
+                        comType: 'input',
28
+                        defaultValue: 300
29
+                    },
30
+                    inDelayTime: {
31
+                        name: '系列间延时时间',
32
+                        comType: 'input',
33
+                        defaultValue: 100
34
+                    },
35
+                    type: {
36
+                        name: '动画类型',
37
+                        defaultValue: 'cubicOut',
38
+                        comType: 'radio',
39
+                        comInfo: [{
40
+                            name: '先快后慢',
41
+                            value: 'cubicOut',
42
+                        },
43
+                        {
44
+                            name: '匀速渐变',
45
+                            value: 'linear'
46
+                        },
47
+                        {
48
+                            name: '先慢后快',
49
+                            value: 'cubicIn'
50
+                        }]
51
+                    },
52
+                }
53
+            }
54
+		}
55
+	},
56
+    styleToComLine:{
57
+		name: '动画',
58
+		sub: {
59
+            enterAnimate:{
60
+                name:'入场动画',
61
+                sub:{
62
+                    isAniamte: {
63
+                        name: '使用动画',
64
+                        defaultValue:false,
65
+                        comType:'radio',
66
+                        comInfo:[{
67
+                            name:'是',
68
+                            value:true
69
+                        },{
70
+                            name:'否',
71
+                            value:false
72
+                        }]
73
+                    },
74
+                    delayTime: {
75
+                        name: '系列间延时时间',
76
+                        comType: 'input',
77
+                        defaultValue: 1000
78
+                    },
79
+                    duringTime: {
80
+                        name: '动画持续时间',
81
+                        comType: 'input',
82
+                        defaultValue: 300
83
+                    },
84
+                }
85
+            }
86
+		}
87
+	},
88
+	// option:{
89
+    //     enterAnimate:{
90
+    //         isAniamte: true,
91
+    //         delayTime: 1000,
92
+    //         duringTime: 3000,
93
+    //         inDelayTime: 300,
94
+    //         type: 'linear'
95
+    //     }
96
+	// },
97
+    // optionLine:{
98
+    //     enterAnimate:{
99
+    //         isAniamte: true,
100
+    //         delayTime: 100,
101
+    //         duringTime: 300,
102
+    //     }
103
+	// }
104
+};
105
+export default config;

+ 488
- 0
src/chart/echarts/commonOptions/axis.js Näytä tiedosto

@@ -0,0 +1,488 @@
1
+let config = {
2
+	x: {
3
+		styleToCom: {
4
+			name: 'x轴',
5
+			sub: {
6
+				title: {
7
+					name: '坐标轴名称',
8
+					defaultValue: '',
9
+					comType: 'input'
10
+				},
11
+				nameTextStyle: {
12
+					name: '坐标轴名称样式',
13
+					sub: {
14
+						fontSize: {
15
+							name: '字体大小',
16
+							defaultValue: 12,
17
+							comType: "slider",
18
+							comInfo: {
19
+								min: 12,
20
+								max: 50
21
+							}
22
+						},
23
+						color: {
24
+							name: '字体颜色',
25
+							defaultValue: '#0080a5',
26
+							comType: 'colorPicker'
27
+						},
28
+					}
29
+				},
30
+				namePosition: {
31
+					name: '坐标轴名称位置',
32
+					defaultValue: 'end',
33
+					comType: 'radio',
34
+					comInfo: [{
35
+						name: '坐标轴前端',
36
+						value: 'start',
37
+					}, {
38
+						name: '坐标轴末端',
39
+						value: 'end'
40
+					}]
41
+				},
42
+				axisLine: {
43
+					name: '轴线',
44
+					sub: {
45
+						show: {
46
+							name: '是否显示',
47
+							comType: 'radio',
48
+							defaultValue: true,
49
+							comInfo: [{
50
+									'name': '是',
51
+									'value': true
52
+								},
53
+								{
54
+									'name': '否',
55
+									'value': false
56
+								}
57
+							]
58
+						},
59
+						lineStyle: {
60
+							name: '线条样式',
61
+							sub: {
62
+								color: {
63
+									name: '颜色',
64
+									comType: 'colorPicker',
65
+									defaultValue: '#26426a',
66
+								},
67
+								width: {
68
+									name: '线宽',
69
+									comType: 'slider',
70
+									defaultValue: 2,
71
+									comInfo: {
72
+										'min': 1,
73
+										'max': 20
74
+									}
75
+								},
76
+							}
77
+
78
+						}
79
+					}
80
+				},
81
+				axisTick: {
82
+					name: '轴刻度线',
83
+					sub: {
84
+						show: {
85
+							name: '是否显示',
86
+							comType: 'radio',
87
+							defaultValue: false,
88
+							comInfo: [{
89
+									name: '是',
90
+									value: true
91
+								},
92
+								{
93
+									name: '否',
94
+									value: false
95
+								}
96
+							]
97
+						},
98
+						length: {
99
+							name: '线条长度',
100
+							comType: 'slider',
101
+							defaultValue: 5,
102
+							comInfo: {
103
+								min: 1,
104
+								max: 50
105
+							}
106
+						},
107
+
108
+						lineStyle: {
109
+							name: '线条样式',
110
+							sub: {
111
+								color: {
112
+									name: '颜色',
113
+									comType: 'colorPicker',
114
+									defaultValue: '#26426a',
115
+								},
116
+								width: {
117
+									name: '线宽',
118
+									comType: 'slider',
119
+									defaultValue: 1,
120
+									comInfo: {
121
+										min: 1,
122
+										max: 20
123
+									}
124
+								}
125
+							}
126
+						}
127
+					}
128
+				},
129
+				splitLine: {
130
+					name: '分割线',
131
+					sub: {
132
+						show: {
133
+							'name': '是否显示',
134
+							'comType': 'radio',
135
+							'defaultValue': true,
136
+							'comInfo': [{
137
+									'name': '是',
138
+									'value': true
139
+								},
140
+								{
141
+									'name': '否',
142
+									'value': false
143
+								}
144
+							]
145
+						},
146
+						lineStyle: {
147
+							'name': '线条样式',
148
+							'sub': {
149
+								'color': {
150
+									'name': '颜色',
151
+									'comType': 'colorPicker',
152
+									'defaultValue': '#26426a',
153
+								},
154
+								'width': {
155
+									'name': '线宽',
156
+									'comType': 'slider',
157
+									'defaultValue': 1,
158
+									'comInfo': {
159
+										'min': 1,
160
+										'max': 20
161
+									}
162
+								},
163
+							}
164
+
165
+						}
166
+					}
167
+				},
168
+				axisLabel: {
169
+					name: '标签',
170
+					sub: {
171
+						show: {
172
+							name: '是否显示',
173
+							defaultValue: true,
174
+							comType: 'radio',
175
+							comInfo: [{
176
+									'name': '是',
177
+									'value': true
178
+								},
179
+								{
180
+									'name': '否',
181
+									'value': false
182
+								}
183
+							]
184
+						},
185
+						textStyle: {
186
+							name: '字体样式',
187
+							type: 'ChartBarH',
188
+							sub: {
189
+								fontSize: {
190
+									name: '字体大小',
191
+									comType: 'slider',
192
+									defaultValue: 12,
193
+									comInfo: {
194
+										min: 12,
195
+										max: 50
196
+									}
197
+								},
198
+								fontWeight: {
199
+									name: '字体加粗',
200
+									comType: 'radio',
201
+									defaultValue: 'normal',
202
+									comInfo: [{
203
+										name: '正常',
204
+										value: 'normal'
205
+									}, {
206
+										name: '加粗',
207
+										value: 'bold'
208
+									}]
209
+								},
210
+								color: {
211
+									name: '字体颜色',
212
+									comType: 'colorPicker',
213
+									defaultValue: '#0080a5'
214
+								},
215
+								textRotation:{
216
+									name: '文字倾斜',
217
+									comType: 'radio',
218
+									defaultValue: 0,
219
+									comInfo: [{
220
+										'name': '横向',
221
+										'value': 0
222
+									},
223
+										{
224
+											'name': '竖向',
225
+											'value': 90
226
+										},{
227
+											'name': '左倾45度',
228
+											'value': 45
229
+										},
230
+										{
231
+											'name': '右倾45度',
232
+											'value': -45
233
+										}
234
+									]
235
+								},
236
+
237
+							}
238
+						}
239
+					}
240
+				}
241
+
242
+			}
243
+		},
244
+	},
245
+	y: {
246
+		styleToCom: {
247
+			'name': 'y轴',
248
+			"sub": {
249
+				title: {
250
+					name: '坐标轴名称',
251
+					defaultValue: '',
252
+					comType: 'input'
253
+				}, 
254
+				nameTextStyle: {
255
+					name: '坐标轴名称样式',
256
+					sub: {
257
+						fontSize: {
258
+							name: '字体大小',
259
+							defaultValue: 12,
260
+							comType: "slider",
261
+							comInfo: {
262
+								min: 12,
263
+								max: 50
264
+							}
265
+						},
266
+						color: {
267
+							name: '字体颜色',
268
+							defaultValue: '#0080a5',
269
+							comType: 'colorPicker'
270
+						},
271
+					}
272
+				},
273
+				namePosition: {
274
+					name: '坐标轴名称位置',
275
+					defaultValue: 'end',
276
+					comType: 'radio',
277
+					comInfo: [{
278
+						name: '坐标轴前端',
279
+						value: 'start',
280
+					}, {
281
+						name: '坐标轴末端',
282
+						value: 'end'
283
+					}]
284
+				},
285
+				axisLine: {
286
+					name: '轴线',
287
+					sub: {
288
+						show: {
289
+							'name': '是否显示',
290
+							'comType': 'radio',
291
+							'defaultValue': false,
292
+							'comInfo': [{
293
+									'name': '是',
294
+									'value': true
295
+								},
296
+								{
297
+									'name': '否',
298
+									'value': false
299
+								}
300
+							]
301
+						},
302
+						lineStyle: {
303
+							'name': '线条样式',
304
+							'sub': {
305
+								'color': {
306
+									'name': '颜色',
307
+									'comType': 'colorPicker',
308
+									'defaultValue': '#26426a',
309
+								},
310
+								'width': {
311
+									'name': '线宽',
312
+									'comType': 'slider',
313
+									'defaultValue': 2,
314
+									'comInfo': {
315
+										'min': 1,
316
+										'max': 20
317
+									}
318
+								}
319
+
320
+							}
321
+
322
+						}
323
+					}
324
+				},
325
+				axisTick: {
326
+					'name': '轴刻度线',
327
+					'sub': {
328
+						'show': {
329
+							'name': '是否显示',
330
+							'comType': 'radio',
331
+							'defaultValue': false,
332
+							'comInfo': [{
333
+									'name': '是',
334
+									'value': true
335
+								},
336
+								{
337
+									'name': '否',
338
+									'value': false
339
+								}
340
+							]
341
+						},
342
+						'length': {
343
+							'name': '线条长度',
344
+							'comType': 'slider',
345
+							'defaultValue': 5,
346
+							'comInfo': {
347
+								'min': 1,
348
+								'max': 50
349
+							}
350
+						},
351
+						'lineStyle': {
352
+							'name': '线条样式',
353
+							'sub': {
354
+								'color': {
355
+									'name': '颜色',
356
+									'comType': 'colorPicker',
357
+									'defaultValue': '#26426a',
358
+								},
359
+								'width': {
360
+									'name': '线宽',
361
+									'comType': 'slider',
362
+									'defaultValue': 1,
363
+									'comInfo': {
364
+										'min': 1,
365
+										'max': 20
366
+									}
367
+								}
368
+							}
369
+						}
370
+					}
371
+				},
372
+				splitLine: {
373
+					'name': '分割线',
374
+					'sub': {
375
+						'show': {
376
+							'name': '是否显示',
377
+							'comType': 'radio',
378
+							'defaultValue': true,
379
+							'comInfo': [{
380
+									'name': '是',
381
+									'value': true
382
+								},
383
+								{
384
+									'name': '否',
385
+									'value': false
386
+								}
387
+							]
388
+						},
389
+						'lineStyle': {
390
+							'name': '线条样式',
391
+							'sub': {
392
+								'color': {
393
+									'name': '颜色',
394
+									'comType': 'colorPicker',
395
+									'defaultValue': '#26426a',
396
+								},
397
+								'width': {
398
+									'name': '线宽',
399
+									'comType': 'slider',
400
+									'defaultValue': 1,
401
+									'comInfo': {
402
+										'min': 1,
403
+										'max': 20
404
+									}
405
+								},
406
+							}
407
+						}
408
+					}
409
+				},
410
+				axisLabel: {
411
+					name: '标签',
412
+					sub: {
413
+						show: {
414
+							name: '是否显示',
415
+							defaultValue: true,
416
+							comType: 'radio',
417
+							comInfo: [{
418
+									'name': '是',
419
+									'value': true
420
+								},
421
+								{
422
+									'name': '否',
423
+									'value': false
424
+								}
425
+							]
426
+						},
427
+						textStyle: {
428
+							name: '字体样式',
429
+							type: 'ChartBarH',
430
+							sub: {
431
+								fontSize: {
432
+									name: '字体大小',
433
+									comType: 'slider',
434
+									defaultValue: 12,
435
+									comInfo: {
436
+										min: 12,
437
+										max: 50
438
+									}
439
+								},
440
+								fontWeight: {
441
+									name: '字体加粗',
442
+									comType: 'radio',
443
+									defaultValue: 'normal',
444
+									comInfo: [{
445
+										name: '正常',
446
+										value: 'normal'
447
+									}, {
448
+										name: '加粗',
449
+										value: 'bold'
450
+									}]
451
+								},
452
+								color: {
453
+									name: '字体颜色',
454
+									comType: 'colorPicker',
455
+									defaultValue: '#0080a5'
456
+								},
457
+								textRotation:{
458
+									name: '文字倾斜',
459
+									comType: 'radio',
460
+									defaultValue: 0,
461
+									comInfo: [{
462
+										'name': '横向',
463
+										'value': 0
464
+									},
465
+										{
466
+											'name': '竖向',
467
+											'value': 90
468
+										},{
469
+											'name': '下倾45度',
470
+											'value': 45
471
+										},
472
+										{
473
+											'name': '上倾45度',
474
+											'value': -45
475
+										}
476
+									]
477
+								},
478
+
479
+							}
480
+						}
481
+					}
482
+				},
483
+			}
484
+		},
485
+	}
486
+}
487
+
488
+export default config;

+ 194
- 0
src/chart/echarts/commonOptions/axis_polar.js Näytä tiedosto

@@ -0,0 +1,194 @@
1
+const config = {
2
+    a: {
3
+        styleToCom: {
4
+            name: '角轴',
5
+            sub: {
6
+                axisCircle: {
7
+                    name: '轴分割线',
8
+                    sub: {
9
+                        lineStyle: {
10
+                            name: '线条样式',
11
+                            sub: {
12
+                                color: {
13
+                                    name: '颜色',
14
+                                    comType: 'colorPicker',
15
+                                    defaultValue: '#DCDCDC',
16
+                                },
17
+                            }
18
+
19
+                        }
20
+                    }
21
+                },
22
+                axisLine: {
23
+                    name: '轴线',
24
+                    sub: {
25
+                        lineStyle: {
26
+                            name: '线条样式',
27
+                            sub: {
28
+                                color: {
29
+                                    name: '颜色',
30
+                                    comType: 'colorPicker',
31
+                                    defaultValue: '#26426a',
32
+                                },
33
+                                width: {
34
+                                    name: '线宽',
35
+                                    comType: 'slider',
36
+                                    defaultValue: 1,
37
+                                    comInfo: {
38
+                                        'min': 1,
39
+                                        'max': 20
40
+                                    }
41
+                                },
42
+                            }
43
+
44
+                        }
45
+                    }
46
+                },
47
+                axisLabel: {
48
+                    name: '标签',
49
+                    sub: {
50
+                        textStyle: {
51
+                            name: '字体样式',
52
+                            sub: {
53
+                                size: {
54
+                                    name: '字体大小',
55
+                                    comType: 'slider',
56
+                                    defaultValue: 12,
57
+                                    comInfo: {
58
+                                        min: 12,
59
+                                        max: 50
60
+                                    }
61
+                                },
62
+                                color: {
63
+                                    name: '字体颜色',
64
+                                    comType: 'colorPicker',
65
+                                    defaultValue: '#0080a5'
66
+                                }
67
+
68
+                            }
69
+                        }
70
+                    }
71
+                },
72
+                axisTick: {
73
+                    name: '轴刻度线',
74
+                    sub: {
75
+                        lineStyle: {
76
+                            name: '线条样式',
77
+                            sub: {
78
+                                color: {
79
+                                    name: '颜色',
80
+                                    comType: 'colorPicker',
81
+                                    defaultValue: '#26426a',
82
+                                },
83
+                                width: {
84
+                                    name: '线宽',
85
+                                    comType: 'slider',
86
+                                    defaultValue: 1,
87
+                                    comInfo: {
88
+                                        min: 1,
89
+                                        max: 20
90
+                                    }
91
+                                }
92
+                            }
93
+                        }
94
+                    }
95
+                },
96
+
97
+            }
98
+        },
99
+    },
100
+    r: {
101
+        styleToCom: {
102
+            name: '径轴',
103
+            sub: {
104
+                axisCircle: {
105
+                    name: '轴分割线',
106
+                    sub: {
107
+                        lineStyle: {
108
+                            name: '线条样式',
109
+                            sub: {
110
+                                color: {
111
+                                    name: '颜色',
112
+                                    comType: 'colorPicker',
113
+                                    defaultValue: '#DCDCDC',
114
+                                },
115
+                            }
116
+
117
+                        }
118
+                    }
119
+                },
120
+                axisLine: {
121
+                    name: '轴线',
122
+                    sub: {
123
+                        lineStyle: {
124
+                            name: '线条样式',
125
+                            sub: {
126
+                                color: {
127
+                                    name: '颜色',
128
+                                    comType: 'colorPicker',
129
+                                    defaultValue: '#26426a',
130
+                                },
131
+
132
+                            }
133
+
134
+                        }
135
+                    }
136
+                },
137
+                axisTick: {
138
+                    name: '轴刻度线',
139
+                    sub: {
140
+                        lineStyle: {
141
+                            name: '线条样式',
142
+                            sub: {
143
+                                color: {
144
+                                    name: '颜色',
145
+                                    comType: 'colorPicker',
146
+                                    defaultValue: '#26426a',
147
+                                },
148
+                                width: {
149
+                                    name: '线宽',
150
+                                    comType: 'slider',
151
+                                    defaultValue: 1,
152
+                                    comInfo: {
153
+                                        min: 1,
154
+                                        max: 20
155
+                                    }
156
+                                }
157
+
158
+                            }
159
+
160
+                        }
161
+                    }
162
+                },
163
+
164
+                axisLabel: {
165
+                    name: '标签',
166
+                    sub: {
167
+                        textStyle: {
168
+                            name: '字体样式',
169
+                            sub: {
170
+                                size: {
171
+                                    name: '字体大小',
172
+                                    comType: 'slider',
173
+                                    defaultValue: 12,
174
+                                    comInfo: {
175
+                                        min: 12,
176
+                                        max: 50
177
+                                    }
178
+                                },
179
+                                color: {
180
+                                    name: '字体颜色',
181
+                                    comType: 'colorPicker',
182
+                                    defaultValue: '#0080a5'
183
+                                }
184
+
185
+                            }
186
+                        }
187
+                    }
188
+                },
189
+            }
190
+        }
191
+    }
192
+};
193
+
194
+export default config;

+ 12
- 0
src/chart/echarts/commonOptions/bg.js Näytä tiedosto

@@ -0,0 +1,12 @@
1
+let config = {
2
+  name: "背景",
3
+  sub: {
4
+    backgroundColor: {
5
+      name: "背景色",
6
+      defaultValue: "#062951",
7
+      comType: "colorPicker",
8
+    },
9
+  },
10
+};
11
+
12
+export default config;

+ 131
- 0
src/chart/echarts/commonOptions/dataZoom.js Näytä tiedosto

@@ -0,0 +1,131 @@
1
+let config = {
2
+
3
+	styleToComX: {
4
+		name: '缩略轴',
5
+		sub: {
6
+			show: {
7
+				name: "是否显示",
8
+				defaultValue: false,
9
+				comType: 'radio',
10
+				comInfo: [{
11
+					name: '是',
12
+					value: true
13
+				}, {
14
+					name: '否',
15
+					value: false
16
+				}]
17
+			},
18
+			zoomHeight: {
19
+				name: '缩略轴宽度',
20
+				defaultValue: 30,
21
+				comTpye: 'slider',
22
+				comInfo: {
23
+					max: 100,
24
+					min: 20
25
+				}
26
+			},
27
+			position: {
28
+				name: '缩略轴位置',
29
+				defaultValue: '90%',
30
+				comType: 'slider',
31
+				comInfo: {
32
+					min: '0%',
33
+					max: '100%'
34
+				},
35
+			},
36
+			zoomBackgroundColor: {
37
+				name: '缩略轴背景色',
38
+				defaultValue: '#e0e0e0',
39
+				comType: 'colorPicker'
40
+			},
41
+			zoomAreaColor: {
42
+				name: '缩略轴区域颜色',
43
+				defaultValue: '#cacaca',
44
+				comType: 'colorPicker'
45
+			},
46
+			zoomLineColor: {
47
+				name: '缩略轴线条颜色',
48
+				defaultValue: '#595959',
49
+				comType: 'colorPicker'
50
+			},
51
+			zoomHandleColor: {
52
+				name: '缩略轴握把颜色',
53
+				defaultValue: '#a3a3a3',
54
+				comType: 'colorPicker'
55
+			},
56
+			zoomMaskColor: {
57
+				name: '缩略轴遮罩层颜色',
58
+				defaultValue: '#949494',
59
+				comType: 'colorPicker'
60
+			}
61
+		}
62
+
63
+	},
64
+	styleToComY: {
65
+		name: '缩略轴',
66
+		sub: {
67
+			show: {
68
+				name: "是否显示",
69
+				defaultValue: false,
70
+				comType: 'radio',
71
+				comInfo: [{
72
+					name: '是',
73
+					value: true
74
+				}, {
75
+					name: '否',
76
+					value: false
77
+				}]
78
+			},
79
+			zoomHeight: {
80
+				name: '缩略轴宽度',
81
+				defaultValue: 30,
82
+				comTpye: 'slider',
83
+				comInfo: {
84
+					max: 100,
85
+					min: 20
86
+				}
87
+			},
88
+			position: {
89
+				name: '缩略轴位置',
90
+				defaultValue: '10%',
91
+				comType: 'slider',
92
+				comInfo: {
93
+					min: '0%',
94
+					max: '100%'
95
+				},
96
+			},
97
+			zoomBackgroundColor: {
98
+				name: '缩略轴背景色',
99
+				defaultValue: '#e0e0e0',
100
+				comType: 'colorPicker'
101
+			},
102
+			zoomAreaColor: {
103
+				name: '缩略轴区域颜色',
104
+				defaultValue: '#cacaca',
105
+				comType: 'colorPicker'
106
+			},
107
+			zoomLineColor: {
108
+				name: '缩略轴线条颜色',
109
+				defaultValue: '#ffffff',
110
+				comType: 'colorPicker'
111
+			},
112
+			zoomHandleColor: {
113
+				name: '缩略轴握把颜色',
114
+				defaultValue: '#979797',
115
+				comType: 'colorPicker'
116
+			},
117
+			zoomMaskColor: {
118
+				name: '缩略轴遮罩层颜色',
119
+				defaultValue: '#949494',
120
+				comType: 'colorPicker'
121
+			}
122
+		}
123
+	},
124
+	// optionX:{
125
+	// 	position:'90%'
126
+	// },
127
+	// optionY:{
128
+	// 	position:'10%'
129
+	// }
130
+}
131
+export default config;

+ 114
- 0
src/chart/echarts/commonOptions/grid.js Näytä tiedosto

@@ -0,0 +1,114 @@
1
+let config = {
2
+    styleToCom: {
3
+        'name': '视区',
4
+        'sub': {
5
+            'left': {
6
+                'name': '左边距',
7
+                'comType': 'slider',
8
+                'defaultValue': '18%',
9
+                'comInfo': {
10
+                    'min': '0%',
11
+                    'max': '100%'
12
+                }
13
+            },
14
+            'right': {
15
+                'name': '右边距',
16
+                'comType': 'slider',
17
+                'defaultValue': '18%',
18
+                'comInfo': {
19
+                    'min': '0%',
20
+                    'max': '100%'
21
+                }
22
+            },
23
+            'top': {
24
+                'name': '上边距',
25
+                'comType': 'slider',
26
+                'defaultValue': '20%',
27
+                'comInfo': {
28
+                    'min': '0%',
29
+                    'max': '100%'
30
+                }
31
+            },
32
+
33
+            'bottom': {
34
+                'name': '下边距',
35
+                'comType': 'slider',
36
+                'defaultValue': '18%',
37
+                'comInfo': {
38
+                    'min': '0%',
39
+                    'max': '100%'
40
+                }
41
+            }
42
+        }
43
+    },
44
+    option: {
45
+        left: '18%',
46
+        top: '20%',
47
+        right: '18%',
48
+        bottom: '18%',
49
+    },
50
+    containLabelOption: {
51
+        left: '18%',
52
+        top: '20%',
53
+        right: '18%',
54
+        bottom: '18%',
55
+        containLabel: false
56
+    },
57
+    containLabelStyle: {
58
+        'name': '视区',
59
+        sub: {
60
+            'left': {
61
+                'name': '左边距',
62
+                'comType': 'slider',
63
+                'defaultValue': '18%',
64
+                'comInfo': {
65
+                    'min': '0%',
66
+                    'max': '100%'
67
+                }
68
+            },
69
+            'right': {
70
+                'name': '右边距',
71
+                'comType': 'slider',
72
+                'defaultValue': '18%',
73
+                'comInfo': {
74
+                    'min': '0%',
75
+                    'max': '100%'
76
+                }
77
+            },
78
+            'top': {
79
+                'name': '上边距',
80
+                'comType': 'slider',
81
+                'defaultValue': '20%',
82
+                'comInfo': {
83
+                    'min': '0%',
84
+                    'max': '100%'
85
+                }
86
+            },
87
+
88
+            'bottom': {
89
+                'name': '下边距',
90
+                'comType': 'slider',
91
+                'defaultValue': '18%',
92
+                'comInfo': {
93
+                    'min': '0%',
94
+                    'max': '100%'
95
+                }
96
+            },
97
+            containLabel: {
98
+                name: "包含坐标轴文字",
99
+                comType: "radio",
100
+                defaultValue: false,
101
+                comInfo: [
102
+                    {
103
+                        name: "是",
104
+                        value: true
105
+                    }, {
106
+                        name: "否",
107
+                        value: false
108
+                    }
109
+                ]
110
+            }
111
+        }
112
+    }
113
+};
114
+export default config;

+ 150
- 0
src/chart/echarts/commonOptions/legend.js Näytä tiedosto

@@ -0,0 +1,150 @@
1
+let config = {
2
+	styleToCom: {
3
+		'name': '图例',
4
+		'sub': {
5
+			'show': {
6
+				'name': '是否显示图例',
7
+				'comType': 'radio',
8
+				'defaultValue': false,
9
+				'comInfo': [{
10
+					'name': '是',
11
+					'value': true
12
+				}, {
13
+					'name': '否',
14
+					'value': false
15
+				}]
16
+			},
17
+			'orient': {
18
+				'name': '排列方式',
19
+				'comType': 'radio',
20
+				'defaultValue': 'vertical',
21
+				'comInfo': [{
22
+					'name': '横向',
23
+					'value': 'horizontal',
24
+				}, {
25
+					'name': '纵向',
26
+					'value': 'vertical'
27
+				}]
28
+			},
29
+			'left': {
30
+				'name': '水平安放位置',
31
+				'defaultChoose': 1,
32
+				'chooseSub': [{
33
+					'comType': 'slider',
34
+					'defaultValue': '5%',
35
+					'comInfo': {
36
+						'min': '0%',
37
+						'max': '100%'
38
+					}
39
+				}, {
40
+					'comType': 'radio',
41
+					'defaultValue': 'right',
42
+					'comInfo': [{
43
+						'name': '居左',
44
+						'value': 'left'
45
+					}, {
46
+						'name': '居中',
47
+						'value': 'center'
48
+					}, {
49
+						'name': '居右',
50
+						'value': 'right'
51
+					}]
52
+				}]
53
+			},
54
+			'top': {
55
+				'name': '垂直安放位置',
56
+				'defaultChoose': 0,
57
+				'chooseSub': [{
58
+					'comType': 'slider',
59
+					'defaultValue': '5%',
60
+					'comInfo': {
61
+						'min': '0%',
62
+						'max': '100%'
63
+					}
64
+				}, {
65
+					'comType': 'radio',
66
+					'defaultValue': 'top',
67
+					'comInfo': [{
68
+						'name': '居上',
69
+						'value': 'top'
70
+					}, {
71
+						'name': '居中',
72
+						'value': 'middle'
73
+					}, {
74
+						'name': '居下',
75
+						'value': 'bottom'
76
+					}]
77
+				}]
78
+			},
79
+			'itemWidth': {
80
+				'name': '图例图形宽度',
81
+				'comType': 'slider',
82
+				'defaultValue': 12,
83
+				'comInfo': {
84
+					'min': 10,
85
+					'max': 100
86
+				}
87
+			},
88
+			'itemHeight': {
89
+				'name': '图例图形高度',
90
+				'comType': 'slider',
91
+				'defaultValue': 12,
92
+				'comInfo': {
93
+					'min': 10,
94
+					'max': 100
95
+				}
96
+			},
97
+			itemAngelR: {
98
+				name: '图形圆角半径',
99
+				defaultValue: 10,
100
+				comType: 'slider',
101
+				comInfo: {
102
+					min: 0,
103
+					max: 20
104
+				}
105
+			},
106
+			'textStyle': {
107
+				'name': '字体样式',
108
+				'sub': {
109
+					'fontSize': {
110
+						'name': '字体大小',
111
+						'comType': 'slider',
112
+						'defaultValue': 12,
113
+						'comInfo': {
114
+							'min': 12,
115
+							'max': 100
116
+						}
117
+					},
118
+					'fontWeight': {
119
+						'name': '字体加粗',
120
+						'comType': 'radio',
121
+						'defaultValue': 'normal',
122
+						'comInfo': [{
123
+							'name': '正常',
124
+							'value': 'normal'
125
+						}, {
126
+							'name': '加粗',
127
+							'value': 'bold'
128
+						}]
129
+					},
130
+					'color': {
131
+						'name': '字体颜色',
132
+						'comType': 'colorPicker',
133
+						'defaultValue': '#7b7b7b'
134
+					}
135
+
136
+				}
137
+			}
138
+		}
139
+	},
140
+	option: {
141
+		show: true,
142
+		left: "right",
143
+		top: '5%',
144
+		orient: 'vertical',
145
+		itemWidth: 12,
146
+		itemHeight: 12
147
+	}
148
+};
149
+
150
+export default config;

+ 111
- 0
src/chart/echarts/commonOptions/title.js Näytä tiedosto

@@ -0,0 +1,111 @@
1
+let config = {
2
+	styleToCom:function(str){
3
+		return {
4
+			'name': '标题',
5
+			'sub': {
6
+				'text': {
7
+					'name': '内容',
8
+					'comType': 'input',
9
+					'defaultValue': str
10
+				},
11
+				'left': {
12
+					'name': '水平安放位置',
13
+					'defaultChoose': 0,
14
+					'chooseSub': [{
15
+						'comType': 'slider',
16
+						'defaultValue': '5%',
17
+						'comInfo': {
18
+							'min': '0%',
19
+							'max': '100%'
20
+						}
21
+					}, {
22
+						'comType': 'radio',
23
+						'defaultValue': 'left',
24
+						'comInfo': [{
25
+							'name': '居左',
26
+							'value': 'left'
27
+						}, {
28
+							'name': '居中',
29
+							'value': 'center'
30
+						}, {
31
+							'name': '居右',
32
+							'value': 'right'
33
+						}]
34
+					}]
35
+				},
36
+				'top': {
37
+					'name': '垂直安放位置',
38
+					'defaultChoose': 0,
39
+					'chooseSub': [{
40
+						'comType': 'slider',
41
+						'defaultValue': '5%',
42
+						'comInfo': {
43
+							'min': '0%',
44
+							'max': '100%'
45
+						}
46
+					}, {
47
+						'comType': 'radio',
48
+						'defaultValue': 'top',
49
+						'comInfo': [{
50
+							'name': '居上',
51
+							'value': 'top'
52
+						}, {
53
+							'name': '居中',
54
+							'value': 'middle'
55
+						}, {
56
+							'name': '居下',
57
+							'value': 'bottom'
58
+						}]
59
+					}]
60
+				},
61
+				'textStyle': {
62
+					'name': '字体样式',
63
+					'sub': {
64
+						'fontSize': {
65
+							'name': '字体大小',
66
+							'comType': 'slider',
67
+							'defaultValue': 14,
68
+							'comInfo': {
69
+								'min': 12,
70
+								'max': 50
71
+							}
72
+						},
73
+						'fontWeight': {
74
+							'name': '字体加粗',
75
+							'comType': 'radio',
76
+							'defaultValue': 'normal',
77
+							'comInfo': [{
78
+								'name': '正常',
79
+								'value': 'normal'
80
+							}, {
81
+								'name': '加粗',
82
+								'value': 'bold'
83
+							}]
84
+						},
85
+						'color': {
86
+							'name': '字体颜色',
87
+							'comType': 'colorPicker',
88
+							'defaultValue': '#000000'
89
+						}
90
+
91
+					}
92
+				}
93
+			}
94
+		};
95
+	},
96
+	option:function(str){
97
+		return {
98
+	        text: str,
99
+	        left: '5%',
100
+	        top: '5%',
101
+	        textStyle: {
102
+	            fontSize: 14,
103
+	            fontWeight:"normal",
104
+	            color: "#000000",
105
+	        }
106
+	    };
107
+	}
108
+
109
+};
110
+
111
+export default config;

+ 108
- 0
src/chart/echarts/commonOptions/tooltip.js Näytä tiedosto

@@ -0,0 +1,108 @@
1
+let config = {
2
+	styleToCom:{
3
+		name: '提示',
4
+		sub: {
5
+			show: {
6
+				name: '是否显示提示框',
7
+				defaultValue:true,
8
+				comType:'radio',
9
+				comInfo:[{
10
+					name:'是',
11
+					value:true
12
+				},{
13
+					name:'否',
14
+					value:false
15
+				}]
16
+			},
17
+			padding:{
18
+				name:'内边距',
19
+				defaultValue:10,
20
+				comType:'slider',
21
+				comInfo:{
22
+					min:1,
23
+					max:100
24
+				}
25
+			},
26
+			itemGap:{
27
+				name:'行间距',
28
+				defaultValue:5,
29
+				comType:'slider',
30
+				comInfo:{
31
+					min:1,
32
+					max:50
33
+				}
34
+			},
35
+			offsetX:{
36
+				name:'横向偏移值',
37
+				defaultValue:15,
38
+				comType:'slider',
39
+				comInfo:{
40
+					min:-100,
41
+					max:100
42
+				}
43
+			},
44
+			offsetY:{
45
+				name:'纵向偏移值',
46
+				defaultValue:0,
47
+				comType:'slider',
48
+				comInfo:{
49
+					min:-100,
50
+					max:100
51
+				}
52
+			},
53
+			titleColor:{
54
+				name:'提示框标题颜色',
55
+				defaultValue:'#ffffff',
56
+				comType:'colorPicker'
57
+			},
58
+			bgStyle:{
59
+				name:'背景',
60
+				sub:{
61
+					borderColor:{
62
+						name:'边框颜色',
63
+						defaultValue:'#cccccc',
64
+						comType:'colorPicker'
65
+					},
66
+					borderWidth:{
67
+						name:'边框宽度',
68
+						defaultValue:0,
69
+						comType:'slider',
70
+						comInfo:{
71
+							min:0,
72
+							max:20
73
+						}
74
+					},
75
+					backgroundColor:{
76
+						name:'背景颜色',
77
+						defaultValue:'rgba(0,0,0,0.8)',
78
+						comType:'colorPicker'
79
+					
80
+					},
81
+				}
82
+			},
83
+			shadowStyle:{
84
+				name:'阴影',
85
+				sub:{
86
+					shadowColor:{
87
+						name:'阴影颜色',
88
+						defaultValue:'#252525',
89
+						comType:'colorPicker'
90
+					},
91
+					shadowOpacity:{
92
+						name:'阴影透明度',
93
+						defaultValue:'35%',
94
+						comType:'slider',
95
+						comInfo:{
96
+							min:'0%',
97
+							max:'100%'
98
+						}
99
+					}
100
+				}
101
+			}
102
+		}
103
+	},
104
+	option:{
105
+
106
+	}
107
+};
108
+export default config;

+ 116
- 0
src/utils/index.js Näytä tiedosto

@@ -14,6 +14,122 @@ const Utils = {
14 14
             }
15 15
         }
16 16
         return result;
17
+    },
18
+    insertCommonTheme:function(config,curTheme){
19
+        if (config.title) {
20
+            if(config.title.sub.textStyle&&config.title.sub.textStyle.sub.color)config.title.sub.textStyle.sub.color.defaultValue = curTheme.theme.titleColor;
21
+            if(config.title.sub.color) config.title.sub.color.defaultValue = curTheme.theme.titleColor;
22
+        }
23
+        if (config.bg.sub.textureColor) { 
24
+            config.bg.sub.textureColor.defaultValue = curTheme.theme.textureColor;
25
+        }
26
+        if(config.bg){
27
+            config.bg.sub.backgroundColor.defaultValue = curTheme.theme.backgroundColor
28
+        }
29
+        if (config.tooltip) {
30
+            if (config.tooltip.sub.bgStyle) config.tooltip.sub.bgStyle.sub.backgroundColor.defaultValue = curTheme.theme.backgroundColor;
31
+            if (config.tooltip.sub.shadowStyle) config.tooltip.sub.shadowStyle.sub.shadowColor.defaultValue = curTheme.theme.shadowColor;
32
+            if (config.tooltip.sub.titleColor) config.tooltip.sub.titleColor.defaultValue = curTheme.theme.titleColor;
33
+            if (config.tooltip.sub.targetline) {
34
+                config.tooltip.sub.targetline.sub.color.defaultValue = curTheme.theme.targetLineColor;
35
+                config.tooltip.sub.dangerline.sub.color.defaultValue = curTheme.theme.dangerLineColor;
36
+            }
37
+        }
38
+        if (config.legend) {
39
+           if(config.legend.sub.textStyle&&config.legend.sub.textStyle.sub.color) config.legend.sub.textStyle.sub.color.defaultValue = curTheme.theme.textColor;
40
+           if(config.legend.sub.color)  config.legend.sub.color.defaultValue = curTheme.theme.textColor;
41
+           if(config.legend.sub.borderColor) config.legend.sub.borderColor.defaultValue = curTheme.theme.lineColor;
42
+        }
43
+        if (config.xAxis) {
44
+            config.xAxis.sub.nameTextStyle && (config.xAxis.sub.nameTextStyle.sub.color.defaultValue = curTheme.theme.textColor);
45
+            if (config.xAxis.sub.axisLine) config.xAxis.sub.axisLine.sub.lineStyle.sub.color.defaultValue = curTheme.theme.lineColor;
46
+            if (config.xAxis.sub.axisTick) config.xAxis.sub.axisTick.sub.lineStyle.sub.color.defaultValue = curTheme.theme.lineColor;
47
+            if (config.xAxis.sub.splitLine) config.xAxis.sub.splitLine.sub.lineStyle.sub.color.defaultValue = curTheme.theme.lineColor;
48
+            if (config.xAxis.sub.axisLabel) {
49
+                if (config.xAxis.sub.axisLabel.sub.color) config.xAxis.sub.axisLabel.sub.color.defaultValue = curTheme.theme.textColor;
50
+                if (config.xAxis.sub.axisLabel.sub.textStyle) config.xAxis.sub.axisLabel.sub.textStyle.sub.color.defaultValue = curTheme.theme.textColor;
51
+            }
52
+            if (config.xAxis.sub.highLightColor) {
53
+                config.xAxis.sub.highLightColor.defaultValue = curTheme.theme.highLightColor;
54
+            }
55
+        }
56
+        if (config.yAxis) {
57
+            config.yAxis.sub.nameTextStyle && (config.yAxis.sub.nameTextStyle.sub.color.defaultValue = curTheme.theme.textColor);
58
+            if (config.yAxis.sub.axisLine) {
59
+                if (config.yAxis.sub.axisLine.sub.lineStyle) {
60
+                    config.yAxis.sub.axisLine.sub.lineStyle.sub.color.defaultValue = curTheme.theme.lineColor;
61
+                }
62
+                if (config.yAxis.sub.axisLine.sub.color) {
63
+                    config.yAxis.sub.axisLine.sub.color.defaultValue = curTheme.theme.lineColor;
64
+                }
65
+            }
66
+            if (config.yAxis.sub.axisTick) config.yAxis.sub.axisTick.sub.lineStyle.sub.color.defaultValue = curTheme.theme.lineColor;
67
+            if (config.yAxis.sub.splitLine) config.yAxis.sub.splitLine.sub.lineStyle.sub.color.defaultValue = curTheme.theme.lineColor;
68
+            if (config.yAxis.sub.axisLabel) {
69
+                if (config.yAxis.sub.axisLabel.sub.color) config.yAxis.sub.axisLabel.sub.color.defaultValue = curTheme.theme.textColor;
70
+                if (config.yAxis.sub.axisLabel.sub.textStyle) config.yAxis.sub.axisLabel.sub.textStyle.sub.color.defaultValue = curTheme.theme.textColor;
71
+            }
72
+            if (config.yAxis.sub.highLightColor) {
73
+                config.yAxis.sub.highLightColor.defaultValue = curTheme.theme.highLightColor;
74
+            }
75
+            if (config.yAxis.sub.lightSplitLine) {
76
+                config.yAxis.sub.lightSplitLine.sub.color.defaultValue = curTheme.theme.lineColor;
77
+            }
78
+            if (config.yAxis.sub.darkSplitLine) {
79
+                config.yAxis.sub.darkSplitLine.sub.color.defaultValue = curTheme.theme.darkSplitColor;
80
+            }
81
+        }
82
+        if (config.dataZoom) {
83
+            config.dataZoom.sub.zoomBackgroundColor.defaultValue = curTheme.theme.zoomBackgroundColor;
84
+            config.dataZoom.sub.zoomAreaColor.defaultValue = curTheme.theme.zoomAreaColor;
85
+            config.dataZoom.sub.zoomLineColor.defaultValue = curTheme.theme.zoomLineColor;
86
+            config.dataZoom.sub.zoomHandleColor.defaultValue = curTheme.theme.zoomHandleColor;
87
+            config.dataZoom.sub.zoomMaskColor.defaultValue = curTheme.theme.zoomMaskColor;
88
+        }
89
+        if (config.radar) {
90
+            config.radar.sub.indicatorName.sub.color.defaultValue = curTheme.theme.textColor;
91
+            config.radar.sub.lineStyle.sub.color.defaultValue = curTheme.theme.lineColor;
92
+        }
93
+        
94
+        // if (config.funnel) {
95
+        //     config.funnel.sub.changePercent.sub.lineColor.defaultValue = curTheme.theme.lineColor;
96
+        //     if (config.funnel.sub.changePercent.sub.textColor) {
97
+        //         config.funnel.sub.changePercent.sub.textColor.defaultValue = curTheme.theme.textColor;
98
+        //     } 
99
+        // }
100
+        if (config.table) {
101
+            // noinspection JSAnnotator
102
+            config.table.sub.headTextColor && (config.table.sub.headTextColor.defaultValue = curTheme.theme.textColor);
103
+            config.table.sub.contentTextColor && (config.table.sub.contentTextColor.defaultValue = curTheme.theme.textColor);
104
+            // noinspection JSAnnotator
105
+            config.table.sub.headColor && (config.table.sub.headColor.defaultValue = curTheme.theme.tableHeaderColor);
106
+            // noinspection JSAnnotator
107
+            config.table.sub.fillColor1 && (config.table.sub.fillColor1.defaultValue = curTheme.theme.backgroundColor);
108
+            // noinspection JSAnnotator
109
+            config.table.sub.fillColor2 && (config.table.sub.fillColor2.defaultValue = curTheme.theme.rowColor);
110
+            // noinspection JSAnnotator
111
+            config.table.sub.outlineColor && (config.table.sub.outlineColor.defaultValue = curTheme.theme.lineColor);
112
+            // noinspection JSAnnotator
113
+            config.table.sub.sliderBlockColor && (config.table.sub.sliderBlockColor.defaultValue = curTheme.theme.textColor);
114
+            // noinspection JSAnnotator
115
+            config.table.sub.sliderBackColor && (config.table.sub.sliderBackColor.defaultValue = curTheme.theme.rowColor);
116
+        }
117
+        if (config.series && config.series.sub) {
118
+            if (config.series.sub.colorList) {
119
+                    config.series.sub.colorList.defaultValue = curTheme.color;
120
+                }
121
+        }
122
+        if (config.setMap) {
123
+            config.setMap.sub.label.normal.sub.color.defaultValue = curTheme.theme.textColor;
124
+            config.setMap.sub.itemStyle.normal.sub.borderColor.defaultValue = curTheme.theme.lineColor;
125
+        }
126
+
127
+        if (config.viewMap) {
128
+            config.viewMap.sub.inRange.sub.colorST.defaultValue = curTheme.theme.visualMapLowColor;
129
+            config.viewMap.sub.inRange.sub.colorED.defaultValue = curTheme.theme.visualMapHighColor;
130
+            config.viewMap.sub.itemStyle.sub.color.defaultValue = curTheme.theme.textColor;
131
+        }
132
+        return config
17 133
     }
18 134
 }
19 135
 

+ 112
- 0
test/echarts/CustomSpirits/CustomSpirits.js Näytä tiedosto

@@ -0,0 +1,112 @@
1
+import utils from 'utils/index.js';
2
+import * as echarts from 'echarts';
3
+// import * as echarts from 'echarts/core';
4
+
5
+import styleConfig from './config/styleConfig';
6
+import dataConfig from './config/dataConfig';
7
+
8
+export default class CustomChartBar{
9
+    constructor(dom, opts){
10
+        console.log('dom', dom)
11
+        console.log('opts', opts)
12
+        opts = opts || {};
13
+        if(opts.getConfig === true){
14
+            return;
15
+        }
16
+
17
+        this.chart = null;
18
+        this._dom = dom;
19
+
20
+        this.init(opts);
21
+    }
22
+
23
+    init(opts){
24
+        this.chart = echarts.init(this._dom);
25
+        this.setOption(opts);
26
+    }
27
+
28
+    setOption(opts, data){
29
+        // this.chart.setOption(this.mergeOption(opts, data), {notMerge:true});
30
+        this.chart.setOption(opts, {notMerge:true});
31
+    }
32
+
33
+
34
+    // mergeOption(style, dataConfig){
35
+    //     style = utils.deepCopy(style);
36
+    //     style.xAxis.data = dataConfig.defaultData[dataConfig.configList[0].defaultKey];
37
+    //     style.color = style.color.color;
38
+    //     style.yAxis = {
39
+    //         type:'value'
40
+    //     }
41
+
42
+    //     style.series = [];
43
+    //     let series = dataConfig.configList[1].defaultKey;
44
+    //     if(Array.isArray(series) === true){
45
+    //         series.forEach( item => {
46
+    //             style.series.push({
47
+    //                 data:dataConfig.defaultData[item],
48
+    //                 type:'bar'
49
+    //             })
50
+    //         })
51
+    //     }else{
52
+    //         style.series = [
53
+    //             {
54
+    //               data: dataConfig.defaultData[series],
55
+    //               type: 'bar'
56
+    //             }
57
+    //           ]
58
+    //     }
59
+        
60
+    //     return style;
61
+    // }
62
+
63
+    getConfig(){
64
+        return{
65
+            styleConfig:utils.deepCopy(styleConfig),
66
+            dataConfig:utils.deepCopy(dataConfig),
67
+            fun:{
68
+                getColName: this.getColName,
69
+                themeMerge: this.themeMerge,
70
+            }
71
+        }
72
+    }
73
+    themeMerge(style, dataConfig){
74
+        style = utils.deepCopy(style);
75
+        style.xAxis.data = dataConfig.xAxis[0].data;
76
+        style.color = style.color.color;
77
+        style.yAxis = {
78
+            type:'value'
79
+        }
80
+
81
+        style.series = [];
82
+        let series = dataConfig.series;
83
+        if(Array.isArray(series) === true){
84
+            series.forEach( item => {
85
+                style.series.push({
86
+                    data:item.data,
87
+                    type:'bar'
88
+                })
89
+            })
90
+        }
91
+        
92
+        return style;
93
+    }
94
+
95
+    getColName(dataConfig){
96
+        let column = {};
97
+        dataConfig = JSON.parse(JSON.stringify(dataConfig));
98
+        let dataConfigKey = dataConfig.configList;
99
+        column.xAxis = [dataConfigKey[0].defaultKey];
100
+        column.series = dataConfigKey[1].defaultKey;
101
+        return column;
102
+    }
103
+
104
+    resize(){
105
+        // this.chart && this.chart.setOption && this.chart.setOption(this.opts)
106
+        this.chart.resize();
107
+    }
108
+
109
+    dispose(){
110
+        this.chart.dispose();
111
+    }
112
+}

+ 112
- 0
test/echarts/CustomSpirits/chartData.js
File diff suppressed because it is too large
Näytä tiedosto


+ 26
- 0
test/echarts/CustomSpirits/index.html Näytä tiedosto

@@ -0,0 +1,26 @@
1
+<!DOCTYPE html>
2
+<html lang="en">
3
+<head>
4
+    <meta charset="UTF-8">
5
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+    <title>CustomSpirits</title>
8
+    <style>
9
+        *{
10
+            margin:0;
11
+            padding:0;
12
+        }
13
+        html, body{
14
+            width: 100%;
15
+            height: 100%;
16
+        }
17
+        #container{
18
+            width: 100%;
19
+            height: 100%;
20
+        }
21
+    </style>
22
+</head>
23
+<body>
24
+    <div id="container"></div>
25
+</body>
26
+</html>

+ 38
- 0
test/echarts/CustomSpirits/index.js Näytä tiedosto

@@ -0,0 +1,38 @@
1
+import chart from '../../../src/chart/echarts/CustomSpirits/CustomSpirits';
2
+import Utils from '../../utils.js';
3
+import chartData from "./chartData";
4
+
5
+
6
+let config = new chart(document.querySelector('#container'), {getConfig:true}).getConfig();
7
+let styleConfig = config.styleConfig;
8
+let dataConfig = config.dataConfig;
9
+console.log('styleConfigtttBefore', styleConfig)
10
+console.log('dataConfigtttBefore', dataConfig)
11
+console.log('styleConfigtttAfter', Utils.parseStyle(styleConfig))
12
+console.log('dataConfigtttAfter', Utils.parseData(dataConfig))
13
+
14
+let option = config.fun.themeMerge(Utils.parseStyle(styleConfig), Utils.parseData(dataConfig));
15
+const myChart = new chart(document.querySelector('#container'), option)
16
+
17
+
18
+// function random() {
19
+//     return +(Math.random() * (2000 - 10)).toFixed(1);
20
+//   }
21
+
22
+// setInterval(function () {
23
+//     const dynamicData = [random(), random(), random(), random()];
24
+//     myChart.setOption({
25
+//       series: [
26
+//         {
27
+//           data: dynamicData.slice()
28
+//         },
29
+//         {
30
+//           data: dynamicData.slice()
31
+//         }
32
+//       ]
33
+//     });
34
+//   }, 3000);
35
+
36
+
37
+console.log("chartDatattt", chartData);
38
+console.log("optionttt", option);

+ 160
- 0
test/echarts/CustomWaterContent/chartData.js Näytä tiedosto

@@ -0,0 +1,160 @@
1
+const symbols = [
2
+  'path://M36.7,102.84c-1.17,2.54-2.99,4.98-3.39,7.63c-1.51,9.89-3.31,19.58-1.93,29.95 c0.95,7.15-2.91,14.82-3.57,22.35c-0.64,7.36-0.2,14.86,0.35,22.25c0.12,1.68,2.66,3.17,4.67,5.4c-0.6,0.82-1.5,2.22-2.58,3.48 c-0.96,1.12-1.96,2.35-3.21,3.04c-1.71,0.95-3.71,2.03-5.51,1.9c-1.18-0.08-3.04-2.13-3.16-3.43c-0.44-4.72,0-9.52-0.41-14.25 c-0.94-10.88-2.32-21.72-3.24-32.61c-0.49-5.84-1.63-12.01-0.35-17.54c3.39-14.56,2.8-28.84,0.36-43.4 c-2.71-16.16-1.06-32.4,0.54-48.59c0.91-9.22,4.62-17.36,8.53-25.57c1.32-2.77,1.88-6.84,0.87-9.62C21.89-3.77,18.09-11,14.7-18.38 c-0.56,0.1-1.13,0.21-1.69,0.31C10.17-11.52,6.29-5.2,4.71,1.65C2.05,13.21-4.42,22.3-11.43,31.28c-1.32,1.69-2.51,3.5-3.98,5.04 c-4.85,5.08-3.25,10.98-2.32,16.82c0.25,1.53,0.52,3.06,0.77,4.59c-0.53,0.22-1.07,0.43-1.6,0.65c-1.07-2.09-2.14-4.19-3.28-6.44 c-6.39,2.91-2.67,9.6-5.23,15.16c-1.61-3.31-2.77-5.68-3.93-8.06c0-0.33,0-0.67,0-1c6.96-16.08,14.63-31.9,20.68-48.31 C-5.24-4.07-2.03-18.55,2-32.73c0.36-1.27,0.75-2.53,0.98-3.82c1.36-7.75,4.19-10.23,11.88-10.38c1.76-0.04,3.52-0.21,5.76-0.35 c-0.55-3.95-1.21-7.3-1.45-10.68c-0.61-8.67,0.77-16.69,7.39-23.19c2.18-2.14,4.27-4.82,5.25-7.65c2.39-6.88,11.66-9,16.94-8.12 c5.92,0.99,12.15,7.93,12.16,14.12c0.01,9.89-5.19,17.26-12.24,23.68c-2.17,1.97-5.35,4.77-5.17,6.94c0.31,3.78,4.15,5.66,8.08,6.04 c1.82,0.18,3.7,0.37,5.49,0.1c5.62-0.85,8.8,2.17,10.85,6.73C73.38-27.19,78.46-14.9,84.2-2.91c1.52,3.17,4.52,5.91,7.41,8.09 c7.64,5.77,15.57,11.16,23.45,16.61c2.28,1.58,4.64,3.23,7.21,4.14c5.18,1.84,8.09,5.63,9.82,10.46c0.45,1.24,0.19,3.71-0.6,4.18 c-1.06,0.63-3.15,0.27-4.44-0.38c-7.05-3.54-12.84-8.88-19.14-13.5c-3.5-2.57-7.9-4-12.03-5.6c-9.44-3.66-17.73-8.42-22.5-18.09 c-2.43-4.94-6.09-9.27-9.69-14.61c-1.2,10.98-4.46,20.65,1.14,31.19c6.62,12.47,5.89,26.25,1.21,39.49 c-2.52,7.11-6.5,13.74-8.67,20.94c-1.91,6.33-2.2,13.15-3.23,19.75c-0.72,4.63-0.84,9.48-2.36,13.84 c-2.49,7.16-6.67,13.83-5.84,21.82c0.42,4.02,1.29,7.99,2.1,12.8c-3.74-0.49-7.47-0.4-10.67-1.66c-1.33-0.53-2.43-4.11-2.07-6.01 c1.86-9.94,3.89-19.69,0.07-29.74C34.55,108.63,36.19,105.52,36.7,102.84c1.25-8.45,2.51-16.89,3.71-24.9 c-0.83-0.58-0.85-0.59-0.87-0.61c-0.03,0.16-0.07,0.32-0.09,0.48C38.53,86.15,37.62,94.5,36.7,102.84z',
3
+  'path://M40.02-99c2.07,1.21,4.26,2.25,6.19,3.66c5.94,4.34,8.23,12.57,4.95,19.79 c-3.21,7.08-6.82,14.03-10.86,20.67c-2.17,3.56-1.25,5.38,1.99,6.36c2.94,0.89,6.36,1.91,9.15,1.21c5.51-1.4,8.33,1.23,10.66,5.29 c4.71,8.22,9.72,16.29,13.84,24.8C81.06-6.65,89,0.4,99.56,5.17C109.82,9.8,120,14.7,129.85,20.15c4.72,2.61,9.09,6.37,10.24,12.97 c-2.89-1.93-5.2-3.75-7.78-5.04c-0.99-0.5-2.6,0.22-4.83,0.5c-5.36-9.35-16.8-9.4-26.74-12.62C91.68,13.04,81.82,11.37,75.66,3 c-5.98-8.13-11.61-16.52-17.4-24.79c-0.46-0.66-0.98-1.27-1.66-2.16c-3.21,7.75-6.78,15-9.12,22.63c-1.15,3.76-0.64,8.37,0.26,12.33 c0.81,3.59,3.01,6.92,4.87,10.22c6.73,11.95,2.41,22.89-2.91,33.75c-0.35,0.72-0.86,1.43-1.46,1.97 c-7.11,6.38-14.48,12.5-21.24,19.22c-2.08,2.07-3.1,5.7-3.62,8.77c-1.92,11.44-3.81,22.92-4.93,34.46 c-0.5,5.16,1.06,10.49,1.28,15.75c0.23,5.7,0.39,11.47-0.15,17.13c-1.15,12.11-2.83,24.17-4.11,36.27c-0.18,1.72,0.8,3.53,1.13,5.33 c0.88,4.76-0.22,6.23-4.71,5.17c-4.53-1.06-8.86-2.94-14.27-4.8c1.98-1.62,2.84-2.83,3.94-3.12c5.42-1.44,7-5.2,6.39-10.23 c-1.39-11.39-3.15-22.73-4.24-34.14c-0.53-5.56,0.16-11.23,0.24-16.85c0.06-4.49,0.01-8.97,0.01-14.72 c-2.79,1.53-5.2,2.27-6.79,3.83c-4.26,4.19-8.39,8.56-12.11,13.22c-1.55,1.95-2.19,4.76-2.79,7.29c-0.47,1.99,0.6,5.02-0.48,6.05 c-2.17,2.08-5.2,3.79-8.13,4.38c-3.61,0.73-7.49,0.18-12.26,0.18c6.34-8.69,11.91-16.11,17.22-23.71c3.29-4.71,6.23-9.67,9.24-14.58 c2.15-3.5,3.76-7.4,6.3-10.57c5.38-6.73,6.74-14.28,6.72-22.64C0.88,68.3,1.36,57.91,2.26,47.58c0.69-7.85,2.15-15.67,3.7-23.41 c0.77-3.83,2.89-7.39,3.72-11.22c1.83-8.4-1.9-16-4.38-23.95C2.96-5.34-0.31,0.12-1.5,6c-1.96,9.72-7.34,17.44-12.26,25.57 c-4.39,7.25-8.79,14.52-12.75,22.01c-2.64,5-4.5,10.41-6.83,15.92c-4.82-5.28-4.65-10.59-0.94-16.97 C-21.4,30.4-12.08,6.78-6.17-18.12c1.4-5.88,1.24-12.11,2.23-18.12c1.2-7.27,4.15-9.56,11.39-9.69c8.65-0.14,13.86-4.77,14.48-13.51 c0.35-5.01,0.16-10.11-0.28-15.12c-0.82-9.3,2.49-16.57,10.17-21.69c2.08-1.39,4.78-1.87,7.2-2.76C39.35-99,39.69-99,40.02-99z',
4
+  'path://M-39,33.03c3.72-9.74,12.97-12.87,20.96-17.43c9.51-5.43,19.2-10.54,28.69-16 c1.77-1.02,3.35-2.85,4.33-4.67C21.44-17,27.82-28.95,33.95-41.04c2.13-4.2,4.95-6.01,9.7-6.09c3.68-0.06,7.52-0.92,10.97-2.25 c5.09-1.95,4.85-5.2,1.1-9.01c-5.12-5.21-10.89-10.1-13.23-17.54c-1.71-5.44,0.78-15.62,4.87-18.74 c4.12-3.15,12.55-3.84,16.69-0.12c3.39,3.04,6.44,7.27,7.8,11.56c1.96,6.16,3.31,12.9,2.99,19.29 c-0.45,9.21,6.35,16.71,15.73,16.97c7.94,0.21,9.27,0.78,10.69,8.61c5.23,28.73,19.4,53.73,32.21,79.33 c1.95,3.9,4.32,7.71,5.51,11.84c1.03,3.61,0.66,7.61,0.91,11.45c-0.73,0.14-1.45,0.28-2.18,0.42c-0.49-1.57-0.98-3.15-1.47-4.72 c-0.22,0.09-0.44,0.19-0.66,0.28c-0.85-2.62-1.7-5.24-2.74-8.45c-0.9,2.53-1.55,4.4-2.21,6.26c-0.41-0.03-0.83-0.06-1.24-0.08 c-0.19-2.78-0.35-5.56-0.56-8.34c-0.67-9.04-7.05-14.8-12.04-21.47c-5.2-6.95-10.31-14.09-14.36-21.73 c-3.56-6.7-5.59-14.21-9-21.29c-3.02,9.7-8.69,18.66-6.3,29.2c0.63,2.78,2.68,5.21,3.87,7.9c4.73,10.64,5.56,22.14,6.92,33.46 c1.21,10.13,1.88,20.38,1.96,30.59c0.06,7.02-1.67,14.04-1.85,21.08c-0.12,4.66,0.83,9.41,1.73,14.03 c1.21,6.22,2.81,12.36,4.28,18.52c0.3,1.26,0.69,2.51,1.23,3.69c3.92,8.54,7.79,17.1,11.88,25.55c1.3,2.67,3.24,5.04,5.07,7.83 c-2.19,0.86-3.64,1.76-5.17,1.97c-3.53,0.47-6.9,0.64-8.13-4.11c-1.71-6.58-3.78-13.07-5.87-19.54c-0.44-1.35-1.6-2.47-3.21-3.33 c0,16.17-7.35,32.86,6.17,48.11c-3.55,0-5.95,0.01-8.36,0c-7.59-0.03-7.66-0.54-7.72-7.64c-0.11-13.74-0.69-27.4-5.27-40.71 c-1.72-5.01-0.38-11.01-1.01-16.49c-0.67-5.79-2.11-11.48-3.08-17.24c-2.52-14.91-12.01-26.06-20.01-38.12 c-5.34-8.06-10.18-16.56-14.25-25.32c-5.18-11.16-5.52-22.61,1.24-33.57c3.68-5.96,3.12-12.27,1.17-18.55 c-2.5-8.03-5.22-16-8.05-24.61c-0.91,1.44-1.76,2.86-2.68,4.24C32.9-10.29,28.04-2.46,22.63,4.96c-5.34,7.34-14.22,8.45-22.08,10.9 c-8.48,2.65-17.2,4.46-23.03,12.01c-1.84,2.39-3.61,4.84-5.41,7.26c-0.39-0.17-0.78-0.34-1.16-0.51c0.81-2.38,1.62-4.76,2.43-7.14 c-0.2-0.22-0.39-0.44-0.59-0.66c-1.24,1.3-2.31,2.88-3.77,3.83c-2.54,1.66-5.33,2.94-8.02,4.37C-39,34.36-39,33.7-39,33.03z',
5
+  'path://M80,100.49c0,5.23,0.13,10.46-0.03,15.69c-0.2,6.3-0.57,12.6-0.99,18.9 c-0.94,14.08-2.08,28.14-2.87,42.22c-0.41,7.29,4.95,14.31,12.03,16.62c1.22,0.4,2.43,0.84,3.65,2.16c-1.8,0.35-3.59,0.91-5.4,1 c-5.4,0.3-10.83,0.7-16.22,0.42c-1.44-0.07-3.7-2.25-3.95-3.74c-0.56-3.4,0.14-6.98-0.13-10.45c-0.77-9.67-0.8-19.56-3-28.92 c-1.97-8.39-2.18-16.07-0.02-24.35c1.28-4.91,1.34-10.48,0.5-15.52c-2.09-12.71-4.95-25.31-7.65-37.92 c-0.34-1.57-1.3-3.33-2.52-4.33c-3.71-3.01-7.37-6.38-11.62-8.38c-13.61-6.41-19.23-28.93-9.14-42.66 c5.41-7.36,5.32-13.85,0.74-21.4c-4.33-7.14-7.8-14.79-11.71-22.32C16.35-14.03,11.08-4.82,4.94,3.76 C1.8,8.13-2.43,12.19-7.04,14.93c-5.3,3.15-11.39,5.39-17.43,6.76c-9.05,2.05-14.31,7.59-17.67,15.68 c-0.43,1.05-1.13,1.99-1.76,2.95c-0.15,0.22-0.52,0.29-1.8,0.94c0.32-2.2,0.61-3.74,0.74-5.3c0.09-1.14-0.04-2.3-0.07-3.46 c-1.38,0.26-3.21,0.05-4.06,0.86c-2,1.91-3.5,4.33-5.27,6.49c-0.5,0.61-1.22,1.03-1.95,1.61c-1.02-5.19,1.42-10.27,7.11-13.9 C-36.09,19.24-22.82,11.2-9.77,2.82c2.12-1.36,3.99-3.6,5.17-5.85C1.52-14.72,7.44-26.52,13.29-38.35 c2.21-4.48,5.11-7.27,10.48-7.83c3.23-0.34,6.27-2.47,9.89-4.01c-4.23-4.83-8.31-8.74-11.49-13.28c-6.34-9.03-7.03-22.38,3.14-29.92 c6.9-5.12,13.79-4.47,20.85,0.69c6.15,4.5,6.15,11.2,7.55,17.13c1.32,5.6,0.82,11.84,0.1,17.67c-0.73,5.9-0.29,7.53,5.3,8.73 c0.96,0.21,1.99,0.17,2.98,0.19C72.51-48.76,74.44-47.06,76-36.52c1.83,12.35,2.1,25.03,6.99,36.77 c3.28,7.88,6.57,15.79,10.47,23.38c3.66,7.12,8.05,13.87,12.25,20.7c2.97,4.84,3.11,12.13-0.65,17c-1.8-2.05-3.45-3.92-5.01-5.7 c0.04-0.04-0.45,0.53-1.46,1.71C94.83,37.86,80.48,24.72,71.82,8.18c0.46,3.43,0.09,7.26,1.54,10.2c3.95,8.01,1.92,16.67,3.56,24.91 c1.63,8.22,1.87,16.74,3.79,24.88c0.88,3.73,4.32,6.84,6.58,10.25c1.09,1.65,2.2,3.29,3.17,5.01c4.84,8.58,9.09,17.55,14.58,25.69 c7.27,10.79,15.21,21.16,23.39,31.28c6.19,7.67,13.08,14.8,19.92,21.92c2.93,3.04,6.54,5.42,9.96,8.2 c-6.92,4.09-12.67,3.33-19.87-2.17c-1.82-1.39-3.76-2.79-5.87-3.62c-4.12-1.63-4.47-4.54-3.73-8.3c0.26-1.33,0.17-3.42-0.66-4.18 c-7.53-6.87-14.85-14.07-23.04-20.07c-7.75-5.68-12.26-13.2-16.11-21.54c-1.44-3.12-3.31-6.06-5.14-8.98 c-0.5-0.8-1.57-1.24-2.38-1.85C81.01,100.03,80.5,100.26,80,100.49z',
6
+  'path://M-57,41.03c3.65-4.15,7.17-8.43,10.98-12.42c6.53-6.83,13.31-13.41,19.84-20.23 c1.76-1.84,3.51-3.98,4.4-6.31c3.8-9.99,6.99-20.23,10.99-30.14c2.74-6.79,5.65-13.62,12.37-17.95c4.17-2.68,5.12-7.31,4.29-11.96 c-0.3-1.67-2.02-3.08-3.35-4.97c-2.57,5.59-4.62,10.03-7.21,15.66c-4.79-6.43-9.76-10.83-11.68-16.31 c-1.77-5.04-1.18-11.44,0.04-16.86c1.27-5.62,5.24-9.71,12.03-9.7c1.55,0,3.1-1.68,4.66-2.55c9.3-5.22,20.47-1.53,25.73,7.59 c4.06,7.04,4.84,14.6,5.57,22.26c0.65,6.82-0.32,7.59-8.26,8.11c0,1.97,0,3.96,0,5.95c8.01-0.17,8.01,0.43,12.02,7.52 c2.09,3.69,6.34,6.1,9.41,9.29c2.48,2.58,7.04,3.14,7.24,8c0.29,6.79,0.46,6.78-6.43,11.08c0,15.78-0.02,31.49,0.03,47.2 c0,1.23,0.29,2.51,0.71,3.67c1.64,4.59,3.27,9.19,5.13,13.7c0.79,1.92,1.88,3.83,3.26,5.36c7.54,8.36,15.45,16.41,22.75,24.96 c5.09,5.97,9.05,12.9,14.18,18.84c9.73,11.26,19.47,22.59,30.08,33c8.84,8.67,18.88,16.13,28.51,23.98 c2.52,2.06,5.48,3.58,8.27,5.36c-4.02,3.54-10.94,4.01-16.34,1.62c-4.76-2.11-9.63-4.03-14.6-5.56c-5.6-1.72-6.59-3.72-4.42-9.32 c0.47-1.22-0.12-3.8-1.11-4.5c-7.36-5.15-14.66-10.53-22.55-14.78c-8.49-4.57-15.35-10.3-19.59-19.04 c-4.29-8.84-11.6-14.85-19.48-20.29c-3.2-2.21-6.43-4.4-9.64-6.6c-0.53,0.17-1.05,0.33-1.58,0.5c-0.11,11.17,0.12,22.36-0.45,33.51 c-0.29,5.72-2.33,11.33-3,17.05c-1.68,14.31-3.04,28.65-4.51,42.98c-0.34,3.34,0.94,5.76,4.12,7.18c6.09,2.73,12.14,5.56,18.61,9.26 c-3.96,0.36-7.93,0.72-11.89,1.08c-4.92,0.45-9.91,0.53-14.76,1.42c-6.96,1.28-9.68-0.99-8.69-8.02c1.73-12.28,0.67-24.36-1.4-36.56 c-1.08-6.36-2.02-14.02,0.49-19.47c5.62-12.19,2.4-23.48,0.01-35.2c-2.05-10.04-3.8-20.14-5.9-30.17c-0.32-1.52-1.72-2.91-2.87-4.13 c-3.6-3.83-8.03-7.09-10.85-11.41c-6.61-10.14-2.6-19.6,3.74-28.13c5.27-7.1,6.85-14.1,2.15-21.95c-3.79-6.34-7.53-12.7-11.38-19 c-0.46-0.75-1.41-1.2-2.77-2.3c-3.27,7.28-6.98,13.9-9.24,20.98c-3.58,11.2-12.11,17.05-21.53,22.3c-1.86,1.04-3.57,2.44-5.53,3.21 c-4.29,1.67-6.09,3.88-4.9,9.01c0.69,2.96-1.31,6.55-2.1,9.86c-0.5,0.03-0.99,0.06-1.49,0.08c-0.18-2.57-0.36-5.14-0.66-9.41 c-3.45,4.38-6.11,7.75-9.33,11.84c-1.07-2.08-1.61-3.13-2.15-4.18C-57,43.7-57,42.36-57,41.03z'
7
+];
8
+const bodyMax = 150;
9
+const labelSetting = {
10
+  show: true,
11
+  position: 'top',
12
+  offset: [0, -20],
13
+  formatter: function (param) {
14
+    return ((param.value / bodyMax) * 100).toFixed(0) + '%';
15
+  },
16
+  fontSize: 18,
17
+  fontFamily: 'Arial'
18
+};
19
+const markLineSetting = {
20
+  symbol: 'none',
21
+  lineStyle: {
22
+    opacity: 0.3
23
+  },
24
+  data: [
25
+    {
26
+      type: 'max',
27
+      label: {
28
+        formatter: 'max: {c}'
29
+      }
30
+    },
31
+    {
32
+      type: 'min',
33
+      label: {
34
+        formatter: 'min: {c}'
35
+      }
36
+    }
37
+  ]
38
+};
39
+const option = {
40
+  tooltip: {},
41
+  legend: {
42
+    data: ['typeA', 'typeB'],
43
+    selectedMode: 'single'
44
+  },
45
+  xAxis: {
46
+    data: ['a', 'b', 'c', 'd', 'e'],
47
+    axisTick: { show: false },
48
+    axisLine: { show: false },
49
+    axisLabel: { show: false }
50
+  },
51
+  yAxis: {
52
+    max: bodyMax,
53
+    offset: 20,
54
+    splitLine: { show: false }
55
+  },
56
+  grid: {
57
+    top: 'center',
58
+    height: 230
59
+  },
60
+  markLine: {
61
+    z: -100
62
+  },
63
+  series: [
64
+    {
65
+      name: 'typeA',
66
+      type: 'pictorialBar',
67
+      symbolClip: true,
68
+      symbolBoundingData: bodyMax,
69
+      label: labelSetting,
70
+      data: [
71
+        {
72
+          value: 123,
73
+          symbol: symbols[0]
74
+        },
75
+        {
76
+          value: 34,
77
+          symbol: symbols[1]
78
+        },
79
+        {
80
+          value: 101,
81
+          symbol: symbols[2]
82
+        },
83
+        {
84
+          value: 89,
85
+          symbol: symbols[3]
86
+        },
87
+        {
88
+          value: 72,
89
+          symbol: symbols[4]
90
+        }
91
+      ],
92
+      markLine: markLineSetting,
93
+      z: 10
94
+    },
95
+    {
96
+      name: 'typeB',
97
+      type: 'pictorialBar',
98
+      symbolClip: true,
99
+      symbolBoundingData: bodyMax,
100
+      label: labelSetting,
101
+      data: [
102
+        {
103
+          value: 12,
104
+          symbol: symbols[0]
105
+        },
106
+        {
107
+          value: 44,
108
+          symbol: symbols[1]
109
+        },
110
+        {
111
+          value: 131,
112
+          symbol: symbols[2]
113
+        },
114
+        {
115
+          value: 33,
116
+          symbol: symbols[3]
117
+        },
118
+        {
119
+          value: 142,
120
+          symbol: symbols[4]
121
+        }
122
+      ],
123
+      markLine: markLineSetting,
124
+      z: 10
125
+    },
126
+    {
127
+      name: 'full',
128
+      type: 'pictorialBar',
129
+      symbolBoundingData: bodyMax,
130
+      animationDuration: 0,
131
+      itemStyle: {
132
+        color: '#ccc'
133
+      },
134
+      data: [
135
+        {
136
+          value: 1,
137
+          symbol: symbols[0]
138
+        },
139
+        {
140
+          value: 1,
141
+          symbol: symbols[1]
142
+        },
143
+        {
144
+          value: 1,
145
+          symbol: symbols[2]
146
+        },
147
+        {
148
+          value: 1,
149
+          symbol: symbols[3]
150
+        },
151
+        {
152
+          value: 1,
153
+          symbol: symbols[4]
154
+        }
155
+      ]
156
+    }
157
+  ]
158
+};
159
+// console.log('option', option)
160
+export default option;

+ 26
- 0
test/echarts/CustomWaterContent/index.html Näytä tiedosto

@@ -0,0 +1,26 @@
1
+<!DOCTYPE html>
2
+<html lang="en">
3
+<head>
4
+    <meta charset="UTF-8">
5
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+    <title>CustomWaterContent</title>
8
+    <style>
9
+        *{
10
+            margin:0;
11
+            padding:0;
12
+        }
13
+        html, body{
14
+            width: 100%;
15
+            height: 100%;
16
+        }
17
+        #container{
18
+            width: 100%;
19
+            height: 100%;
20
+        }
21
+    </style>
22
+</head>
23
+<body>
24
+    <div id="container"></div>
25
+</body>
26
+</html>

+ 18
- 0
test/echarts/CustomWaterContent/index.js Näytä tiedosto

@@ -0,0 +1,18 @@
1
+import chart from '../../../src/chart/echarts/CustomWaterContent/CustomWaterContent.js';
2
+import Utils from '../../utils.js';
3
+import chartData from "./chartData";
4
+
5
+
6
+let config = new chart(document.querySelector('#container'), {getConfig:true}).getConfig();
7
+let styleConfig = config.styleConfig;
8
+let dataConfig = config.dataConfig;
9
+console.log('styleConfigtttBefore', styleConfig)
10
+console.log('dataConfigtttBefore', dataConfig)
11
+console.log('styleConfigtttAfter', Utils.parseStyle(styleConfig))
12
+console.log('dataConfigtttAfter', Utils.parseData(dataConfig))
13
+
14
+let option = config.fun.themeMerge(Utils.parseStyle(styleConfig), Utils.parseData(dataConfig));
15
+new chart(document.querySelector('#container'), option)
16
+
17
+
18
+console.log("chartDatattt", chartData);

Loading…
Peruuta
Tallenna