echarts 4.5.0 → 4.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/echarts-en.common.js +1790 -774
- package/dist/echarts-en.common.min.js +1 -1
- package/dist/echarts-en.js +2029 -849
- package/dist/echarts-en.js.map +1 -1
- package/dist/echarts-en.min.js +1 -1
- package/dist/echarts-en.simple.js +1676 -691
- package/dist/echarts-en.simple.min.js +1 -1
- package/dist/echarts.common.js +1790 -774
- package/dist/echarts.common.min.js +1 -1
- package/dist/echarts.js +2029 -849
- package/dist/echarts.js.map +1 -1
- package/dist/echarts.min.js +1 -1
- package/dist/echarts.simple.js +1676 -691
- package/dist/echarts.simple.min.js +1 -1
- package/lib/chart/bar/BarView.js +11 -1
- package/lib/chart/bar/BaseBarSeries.js +3 -1
- package/lib/chart/effectScatter/EffectScatterSeries.js +3 -1
- package/lib/chart/funnel/FunnelSeries.js +15 -5
- package/lib/chart/gauge/GaugeSeries.js +0 -2
- package/lib/chart/graph/GraphSeries.js +9 -4
- package/lib/chart/graph/GraphView.js +28 -8
- package/lib/chart/heatmap/HeatmapView.js +4 -4
- package/lib/chart/helper/createListFromArray.js +14 -8
- package/lib/chart/helper/whiskerBoxCommon.js +22 -16
- package/lib/chart/line/LineSeries.js +3 -1
- package/lib/chart/line/LineView.js +8 -2
- package/lib/chart/map/MapSeries.js +8 -1
- package/lib/chart/pie/PieSeries.js +27 -6
- package/lib/chart/pie/PieView.js +1 -1
- package/lib/chart/pie/labelLayout.js +102 -19
- package/lib/chart/pie/pieLayout.js +19 -7
- package/lib/chart/radar/RadarSeries.js +3 -3
- package/lib/chart/sankey/SankeyView.js +28 -9
- package/lib/chart/scatter/ScatterSeries.js +3 -1
- package/lib/chart/themeRiver/ThemeRiverSeries.js +3 -3
- package/lib/chart/tree/TreeSeries.js +15 -1
- package/lib/component/axis/AngleAxisView.js +64 -7
- package/lib/component/axis/AxisBuilder.js +63 -24
- package/lib/component/axis/CartesianAxisView.js +55 -11
- package/lib/component/axis/RadiusAxisView.js +36 -4
- package/lib/component/dataZoom/SliderZoomView.js +4 -10
- package/lib/component/helper/BrushController.js +33 -43
- package/lib/component/legend/LegendModel.js +3 -3
- package/lib/component/legend/LegendView.js +17 -13
- package/lib/component/toolbox/ToolboxView.js +5 -1
- package/lib/component/toolbox/feature/MagicType.js +19 -14
- package/lib/coord/Axis.js +30 -2
- package/lib/coord/axisDefault.js +21 -2
- package/lib/data/DataDimensionInfo.js +157 -0
- package/lib/data/List.js +25 -19
- package/lib/data/Tree.js +2 -1
- package/lib/data/helper/completeDimensions.js +43 -32
- package/lib/data/helper/createDimensions.js +2 -0
- package/lib/data/helper/sourceHelper.js +214 -114
- package/lib/echarts.js +2 -2
- package/lib/layout/barGrid.js +2 -3
- package/lib/model/Series.js +3 -3
- package/lib/model/referHelper.js +40 -12
- package/lib/scale/Interval.js +87 -2
- package/lib/scale/Log.js +9 -2
- package/lib/scale/helper.js +1 -43
- package/lib/theme/dark.js +3 -0
- package/lib/util/graphic.js +1 -2
- package/lib/visual/LegendVisualProvider.js +75 -0
- package/lib/visual/dataColor.js +2 -12
- package/lib/visual/seriesColor.js +15 -7
- package/map/json/province/tianjin.json +1 -1
- package/package.json +3 -2
- package/src/chart/bar/BarView.js +12 -2
- package/src/chart/bar/BaseBarSeries.js +1 -1
- package/src/chart/effectScatter/EffectScatterSeries.js +1 -1
- package/src/chart/funnel/FunnelSeries.js +11 -4
- package/src/chart/gauge/GaugeSeries.js +0 -1
- package/src/chart/graph/GraphSeries.js +8 -3
- package/src/chart/graph/GraphView.js +26 -8
- package/src/chart/heatmap/HeatmapView.js +4 -4
- package/src/chart/helper/createListFromArray.js +13 -8
- package/src/chart/helper/whiskerBoxCommon.js +21 -16
- package/src/chart/line/LineSeries.js +1 -1
- package/src/chart/line/LineView.js +6 -1
- package/src/chart/map/MapSeries.js +5 -1
- package/src/chart/pie/PieSeries.js +26 -5
- package/src/chart/pie/PieView.js +1 -1
- package/src/chart/pie/labelLayout.js +114 -22
- package/src/chart/pie/pieLayout.js +20 -7
- package/src/chart/radar/RadarSeries.js +5 -3
- package/src/chart/sankey/SankeyView.js +26 -9
- package/src/chart/scatter/ScatterSeries.js +1 -1
- package/src/chart/themeRiver/ThemeRiverSeries.js +4 -3
- package/src/chart/tree/TreeSeries.js +12 -1
- package/src/component/axis/AngleAxisView.js +75 -7
- package/src/component/axis/AxisBuilder.js +78 -33
- package/src/component/axis/CartesianAxisView.js +58 -11
- package/src/component/axis/RadiusAxisView.js +37 -4
- package/src/component/dataZoom/SliderZoomView.js +4 -9
- package/src/component/helper/BrushController.js +40 -47
- package/src/component/legend/LegendModel.js +3 -3
- package/src/component/legend/LegendView.js +18 -12
- package/src/component/toolbox/ToolboxView.js +5 -0
- package/src/component/toolbox/feature/MagicType.js +18 -13
- package/src/coord/Axis.js +29 -2
- package/src/coord/axisDefault.js +25 -1
- package/src/data/DataDimensionInfo.js +135 -0
- package/src/data/List.js +29 -16
- package/src/data/Tree.js +3 -1
- package/src/data/helper/completeDimensions.js +49 -30
- package/src/data/helper/createDimensions.js +2 -0
- package/src/data/helper/sourceHelper.js +216 -124
- package/src/echarts.js +2 -2
- package/src/layout/barGrid.js +6 -3
- package/src/model/Series.js +3 -3
- package/src/model/referHelper.js +34 -11
- package/src/scale/Interval.js +84 -4
- package/src/scale/Log.js +9 -2
- package/src/scale/helper.js +1 -39
- package/src/theme/dark.js +3 -0
- package/src/util/graphic.js +1 -2
- package/src/visual/LegendVisualProvider.js +55 -0
- package/src/visual/dataColor.js +0 -13
- package/src/visual/seriesColor.js +13 -7
- package/theme/azul.js +163 -0
- package/theme/bee-inspired.js +178 -0
- package/theme/blue.js +178 -0
- package/theme/caravan.js +178 -0
- package/theme/carp.js +163 -0
- package/theme/cool.js +180 -0
- package/theme/dark-blue.js +168 -0
- package/theme/dark-bold.js +168 -0
- package/theme/dark-digerati.js +168 -0
- package/theme/dark-fresh-cut.js +168 -0
- package/theme/dark-mushroom.js +168 -0
- package/theme/dark.js +69 -62
- package/theme/eduardo.js +178 -0
- package/theme/forest.js +163 -0
- package/theme/fresh-cut.js +163 -0
- package/theme/fruit.js +178 -0
- package/theme/gray.js +220 -0
- package/theme/green.js +222 -0
- package/theme/helianthus.js +263 -0
- package/theme/infographic.js +72 -57
- package/theme/inspired.js +163 -0
- package/theme/jazz.js +163 -0
- package/theme/london.js +163 -0
- package/theme/macarons.js +80 -57
- package/theme/macarons2.js +251 -0
- package/theme/mint.js +155 -0
- package/theme/red-velvet.js +163 -0
- package/theme/red.js +225 -0
- package/theme/roma.js +55 -22
- package/theme/royal.js +163 -0
- package/theme/sakura.js +140 -0
- package/theme/shine.js +52 -45
- package/theme/tech-blue.js +180 -0
- package/theme/vintage.js +37 -23
package/theme/royal.js
ADDED
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Licensed to the Apache Software Foundation (ASF) under one
|
|
3
|
+
* or more contributor license agreements. See the NOTICE file
|
|
4
|
+
* distributed with this work for additional information
|
|
5
|
+
* regarding copyright ownership. The ASF licenses this file
|
|
6
|
+
* to you under the Apache License, Version 2.0 (the
|
|
7
|
+
* "License"); you may not use this file except in compliance
|
|
8
|
+
* with the License. You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing,
|
|
13
|
+
* software distributed under the License is distributed on an
|
|
14
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
15
|
+
* KIND, either express or implied. See the License for the
|
|
16
|
+
* specific language governing permissions and limitations
|
|
17
|
+
* under the License.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
(function(root, factory) {
|
|
21
|
+
if (typeof define === 'function' && define.amd) {
|
|
22
|
+
// AMD. Register as an anonymous module.
|
|
23
|
+
define(['exports', 'echarts'], factory);
|
|
24
|
+
} else if (
|
|
25
|
+
typeof exports === 'object' &&
|
|
26
|
+
typeof exports.nodeName !== 'string'
|
|
27
|
+
) {
|
|
28
|
+
// CommonJS
|
|
29
|
+
factory(exports, require('echarts'));
|
|
30
|
+
} else {
|
|
31
|
+
// Browser globals
|
|
32
|
+
factory({}, root.echarts);
|
|
33
|
+
}
|
|
34
|
+
})(this, function(exports, echarts) {
|
|
35
|
+
var log = function(msg) {
|
|
36
|
+
if (typeof console !== 'undefined') {
|
|
37
|
+
console && console.error && console.error(msg);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
if (!echarts) {
|
|
41
|
+
log('ECharts is not Loaded');
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
var colorPalette = [
|
|
46
|
+
'#3f7ea6',
|
|
47
|
+
'#993366',
|
|
48
|
+
'#408000',
|
|
49
|
+
'#8c6f56',
|
|
50
|
+
'#a65149',
|
|
51
|
+
'#731f17',
|
|
52
|
+
'#adc2eb',
|
|
53
|
+
'#d9c3b0'
|
|
54
|
+
];
|
|
55
|
+
|
|
56
|
+
var theme = {
|
|
57
|
+
color: colorPalette,
|
|
58
|
+
|
|
59
|
+
title: {
|
|
60
|
+
textStyle: {
|
|
61
|
+
fontWeight: 'normal',
|
|
62
|
+
color: '#3f7ea6'
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
|
|
66
|
+
visualMap: {
|
|
67
|
+
color: ['#3f7ea6', '#993366']
|
|
68
|
+
},
|
|
69
|
+
|
|
70
|
+
toolbox: {
|
|
71
|
+
color: ['#3f7ea6', '#3f7ea6', '#3f7ea6', '#3f7ea6']
|
|
72
|
+
},
|
|
73
|
+
|
|
74
|
+
tooltip: {
|
|
75
|
+
backgroundColor: 'rgba(0,0,0,0.5)',
|
|
76
|
+
axisPointer: {
|
|
77
|
+
// Axis indicator, coordinate trigger effective
|
|
78
|
+
type: 'line', // The default is a straight line: 'line' | 'shadow'
|
|
79
|
+
lineStyle: {
|
|
80
|
+
// Straight line indicator style settings
|
|
81
|
+
color: '#3f7ea6',
|
|
82
|
+
type: 'dashed'
|
|
83
|
+
},
|
|
84
|
+
crossStyle: {
|
|
85
|
+
color: '#3f7ea6'
|
|
86
|
+
},
|
|
87
|
+
shadowStyle: {
|
|
88
|
+
// Shadow indicator style settings
|
|
89
|
+
color: 'rgba(200,200,200,0.3)'
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
|
|
94
|
+
// Area scaling controller
|
|
95
|
+
dataZoom: {
|
|
96
|
+
dataBackgroundColor: '#eee', // Data background color
|
|
97
|
+
fillerColor: 'rgba(200,200,200,0.2)', // Fill the color
|
|
98
|
+
handleColor: '#3f7ea6' // Handle color
|
|
99
|
+
},
|
|
100
|
+
|
|
101
|
+
timeline: {
|
|
102
|
+
lineStyle: {
|
|
103
|
+
color: '#3f7ea6'
|
|
104
|
+
},
|
|
105
|
+
controlStyle: {
|
|
106
|
+
color: '#3f7ea6',
|
|
107
|
+
borderColor: '#3f7ea6'
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
|
|
111
|
+
candlestick: {
|
|
112
|
+
itemStyle: {
|
|
113
|
+
color: '#d9c3b0',
|
|
114
|
+
color0: '#8c6f56'
|
|
115
|
+
},
|
|
116
|
+
lineStyle: {
|
|
117
|
+
width: 1,
|
|
118
|
+
color: '#731f17',
|
|
119
|
+
color0: '#a65149'
|
|
120
|
+
},
|
|
121
|
+
areaStyle: {
|
|
122
|
+
color: '#3f7ea6',
|
|
123
|
+
color0: '#993366'
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
|
|
127
|
+
map: {
|
|
128
|
+
itemStyle: {
|
|
129
|
+
color: '#d9c3b0'
|
|
130
|
+
},
|
|
131
|
+
areaStyle: {
|
|
132
|
+
color: '#ddd'
|
|
133
|
+
},
|
|
134
|
+
label: {
|
|
135
|
+
color: '#c12e34'
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
|
|
139
|
+
graph: {
|
|
140
|
+
itemStyle: {
|
|
141
|
+
color: '#993366'
|
|
142
|
+
},
|
|
143
|
+
linkStyle: {
|
|
144
|
+
color: '#3f7ea6'
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
|
|
148
|
+
gauge: {
|
|
149
|
+
axisLine: {
|
|
150
|
+
lineStyle: {
|
|
151
|
+
color: [
|
|
152
|
+
[0.2, '#d9c3b0'],
|
|
153
|
+
[0.8, '#3f7ea6'],
|
|
154
|
+
[1, '#731f17']
|
|
155
|
+
],
|
|
156
|
+
width: 8
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
echarts.registerTheme('royal', theme);
|
|
163
|
+
});
|
package/theme/sakura.js
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Licensed to the Apache Software Foundation (ASF) under one
|
|
3
|
+
* or more contributor license agreements. See the NOTICE file
|
|
4
|
+
* distributed with this work for additional information
|
|
5
|
+
* regarding copyright ownership. The ASF licenses this file
|
|
6
|
+
* to you under the Apache License, Version 2.0 (the
|
|
7
|
+
* "License"); you may not use this file except in compliance
|
|
8
|
+
* with the License. You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing,
|
|
13
|
+
* software distributed under the License is distributed on an
|
|
14
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
15
|
+
* KIND, either express or implied. See the License for the
|
|
16
|
+
* specific language governing permissions and limitations
|
|
17
|
+
* under the License.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
(function(root, factory) {
|
|
21
|
+
if (typeof define === 'function' && define.amd) {
|
|
22
|
+
// AMD. Register as an anonymous module.
|
|
23
|
+
define(['exports', 'echarts'], factory);
|
|
24
|
+
} else if (
|
|
25
|
+
typeof exports === 'object' &&
|
|
26
|
+
typeof exports.nodeName !== 'string'
|
|
27
|
+
) {
|
|
28
|
+
// CommonJS
|
|
29
|
+
factory(exports, require('echarts'));
|
|
30
|
+
} else {
|
|
31
|
+
// Browser globals
|
|
32
|
+
factory({}, root.echarts);
|
|
33
|
+
}
|
|
34
|
+
})(this, function(exports, echarts) {
|
|
35
|
+
var log = function(msg) {
|
|
36
|
+
if (typeof console !== 'undefined') {
|
|
37
|
+
console && console.error && console.error(msg);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
if (!echarts) {
|
|
41
|
+
log('ECharts is not Loaded');
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
var colorPalette = [
|
|
46
|
+
'#e52c3c',
|
|
47
|
+
'#f7b1ab',
|
|
48
|
+
'#fa506c',
|
|
49
|
+
'#f59288',
|
|
50
|
+
'#f8c4d8',
|
|
51
|
+
'#e54f5c',
|
|
52
|
+
'#f06d5c',
|
|
53
|
+
'#e54f80',
|
|
54
|
+
'#f29c9f',
|
|
55
|
+
'#eeb5b7'
|
|
56
|
+
];
|
|
57
|
+
|
|
58
|
+
var theme = {
|
|
59
|
+
color: colorPalette,
|
|
60
|
+
|
|
61
|
+
title: {
|
|
62
|
+
textStyle: {
|
|
63
|
+
fontWeight: 'normal',
|
|
64
|
+
color: '#e52c3c'
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
|
|
68
|
+
visualMap: {
|
|
69
|
+
color: ['#e52c3c', '#f7b1ab']
|
|
70
|
+
},
|
|
71
|
+
|
|
72
|
+
dataRange: {
|
|
73
|
+
color: ['#e52c3c', '#f7b1ab']
|
|
74
|
+
},
|
|
75
|
+
|
|
76
|
+
candlestick: {
|
|
77
|
+
itemStyle: {
|
|
78
|
+
color: '#e52c3c',
|
|
79
|
+
color0: '#f59288'
|
|
80
|
+
},
|
|
81
|
+
lineStyle: {
|
|
82
|
+
width: 1,
|
|
83
|
+
color: '#e52c3c',
|
|
84
|
+
color0: '#f59288'
|
|
85
|
+
},
|
|
86
|
+
areaStyle: {
|
|
87
|
+
color: '#fa506c',
|
|
88
|
+
color0: '#f8c4d8'
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
|
|
92
|
+
map: {
|
|
93
|
+
itemStyle: {
|
|
94
|
+
color: '#e52c3c',
|
|
95
|
+
borderColor: '#fff',
|
|
96
|
+
borderWidth: 1
|
|
97
|
+
},
|
|
98
|
+
areaStyle: {
|
|
99
|
+
color: '#ccc'
|
|
100
|
+
},
|
|
101
|
+
label: {
|
|
102
|
+
color: 'rgba(139,69,19,1)',
|
|
103
|
+
show: false
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
|
|
107
|
+
graph: {
|
|
108
|
+
itemStyle: {
|
|
109
|
+
color: '#f2385a'
|
|
110
|
+
},
|
|
111
|
+
nodeStyle: {
|
|
112
|
+
brushType: 'both',
|
|
113
|
+
strokeColor: '#e54f5c'
|
|
114
|
+
},
|
|
115
|
+
linkStyle: {
|
|
116
|
+
color: '#f2385a',
|
|
117
|
+
strokeColor: '#e54f5c'
|
|
118
|
+
},
|
|
119
|
+
label: {
|
|
120
|
+
color: '#f2385a',
|
|
121
|
+
show: false
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
|
|
125
|
+
gauge: {
|
|
126
|
+
axisLine: {
|
|
127
|
+
lineStyle: {
|
|
128
|
+
color: [
|
|
129
|
+
[0.2, '#e52c3c'],
|
|
130
|
+
[0.8, '#f7b1ab'],
|
|
131
|
+
[1, '#fa506c']
|
|
132
|
+
],
|
|
133
|
+
width: 8
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
echarts.registerTheme('sakura', theme);
|
|
140
|
+
});
|
package/theme/shine.js
CHANGED
|
@@ -16,19 +16,22 @@
|
|
|
16
16
|
* specific language governing permissions and limitations
|
|
17
17
|
* under the License.
|
|
18
18
|
*/
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
(function(root, factory) {
|
|
20
|
+
if (typeof define === 'function' && define.amd) {
|
|
21
21
|
// AMD. Register as an anonymous module.
|
|
22
22
|
define(['exports', 'echarts'], factory);
|
|
23
|
-
} else if (
|
|
23
|
+
} else if (
|
|
24
|
+
typeof exports === 'object' &&
|
|
25
|
+
typeof exports.nodeName !== 'string'
|
|
26
|
+
) {
|
|
24
27
|
// CommonJS
|
|
25
28
|
factory(exports, require('echarts'));
|
|
26
29
|
} else {
|
|
27
30
|
// Browser globals
|
|
28
31
|
factory({}, root.echarts);
|
|
29
32
|
}
|
|
30
|
-
}(this, function
|
|
31
|
-
var log = function
|
|
33
|
+
})(this, function(exports, echarts) {
|
|
34
|
+
var log = function(msg) {
|
|
32
35
|
if (typeof console !== 'undefined') {
|
|
33
36
|
console && console.error && console.error(msg);
|
|
34
37
|
}
|
|
@@ -39,12 +42,17 @@
|
|
|
39
42
|
}
|
|
40
43
|
|
|
41
44
|
var colorPalette = [
|
|
42
|
-
'#c12e34',
|
|
43
|
-
'#
|
|
45
|
+
'#c12e34',
|
|
46
|
+
'#e6b600',
|
|
47
|
+
'#0098d9',
|
|
48
|
+
'#2b821d',
|
|
49
|
+
'#005eaa',
|
|
50
|
+
'#339ca8',
|
|
51
|
+
'#cda819',
|
|
52
|
+
'#32a487'
|
|
44
53
|
];
|
|
45
54
|
|
|
46
55
|
var theme = {
|
|
47
|
-
|
|
48
56
|
color: colorPalette,
|
|
49
57
|
|
|
50
58
|
title: {
|
|
@@ -54,7 +62,7 @@
|
|
|
54
62
|
},
|
|
55
63
|
|
|
56
64
|
visualMap: {
|
|
57
|
-
color:['#1790cf','#a2d4e6']
|
|
65
|
+
color: ['#1790cf', '#a2d4e6']
|
|
58
66
|
},
|
|
59
67
|
|
|
60
68
|
toolbox: {
|
|
@@ -80,52 +88,47 @@
|
|
|
80
88
|
color: '#005eaa'
|
|
81
89
|
},
|
|
82
90
|
controlStyle: {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
borderColor: '#005eaa'
|
|
86
|
-
}
|
|
91
|
+
color: '#005eaa',
|
|
92
|
+
borderColor: '#005eaa'
|
|
87
93
|
}
|
|
88
94
|
},
|
|
89
95
|
|
|
90
96
|
candlestick: {
|
|
91
97
|
itemStyle: {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
98
|
+
color: '#c12e34',
|
|
99
|
+
color0: '#2b821d'
|
|
100
|
+
},
|
|
101
|
+
lineStyle: {
|
|
102
|
+
width: 1,
|
|
103
|
+
color: '#c12e34',
|
|
104
|
+
color0: '#2b821d'
|
|
105
|
+
},
|
|
106
|
+
areaStyle: {
|
|
107
|
+
color: '#e6b600',
|
|
108
|
+
color0: '#005eaa'
|
|
101
109
|
}
|
|
102
110
|
},
|
|
103
111
|
|
|
104
112
|
graph: {
|
|
105
|
-
|
|
113
|
+
itemStyle: {
|
|
114
|
+
color: '#e6b600'
|
|
115
|
+
},
|
|
116
|
+
linkStyle: {
|
|
117
|
+
color: '#005eaa'
|
|
118
|
+
}
|
|
106
119
|
},
|
|
107
120
|
|
|
108
121
|
map: {
|
|
109
|
-
label: {
|
|
110
|
-
normal: {
|
|
111
|
-
textStyle: {
|
|
112
|
-
color: '#c12e34'
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
emphasis: {
|
|
116
|
-
textStyle: {
|
|
117
|
-
color: '#c12e34'
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
122
|
itemStyle: {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
123
|
+
color: '#f2385a',
|
|
124
|
+
borderColor: '#eee',
|
|
125
|
+
areaColor: '#ddd'
|
|
126
|
+
},
|
|
127
|
+
areaStyle: {
|
|
128
|
+
color: '#ddd'
|
|
129
|
+
},
|
|
130
|
+
label: {
|
|
131
|
+
color: '#c12e34'
|
|
129
132
|
}
|
|
130
133
|
},
|
|
131
134
|
|
|
@@ -133,13 +136,17 @@
|
|
|
133
136
|
axisLine: {
|
|
134
137
|
show: true,
|
|
135
138
|
lineStyle: {
|
|
136
|
-
color: [
|
|
139
|
+
color: [
|
|
140
|
+
[0.2, '#2b821d'],
|
|
141
|
+
[0.8, '#005eaa'],
|
|
142
|
+
[1, '#c12e34']
|
|
143
|
+
],
|
|
137
144
|
width: 5
|
|
138
145
|
}
|
|
139
146
|
},
|
|
140
147
|
axisTick: {
|
|
141
148
|
splitNumber: 10,
|
|
142
|
-
length:8,
|
|
149
|
+
length: 8,
|
|
143
150
|
lineStyle: {
|
|
144
151
|
color: 'auto'
|
|
145
152
|
}
|
|
@@ -173,4 +180,4 @@
|
|
|
173
180
|
}
|
|
174
181
|
};
|
|
175
182
|
echarts.registerTheme('shine', theme);
|
|
176
|
-
})
|
|
183
|
+
});
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Licensed to the Apache Software Foundation (ASF) under one
|
|
3
|
+
* or more contributor license agreements. See the NOTICE file
|
|
4
|
+
* distributed with this work for additional information
|
|
5
|
+
* regarding copyright ownership. The ASF licenses this file
|
|
6
|
+
* to you under the Apache License, Version 2.0 (the
|
|
7
|
+
* "License"); you may not use this file except in compliance
|
|
8
|
+
* with the License. You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing,
|
|
13
|
+
* software distributed under the License is distributed on an
|
|
14
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
15
|
+
* KIND, either express or implied. See the License for the
|
|
16
|
+
* specific language governing permissions and limitations
|
|
17
|
+
* under the License.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
(function(root, factory) {
|
|
21
|
+
if (typeof define === 'function' && define.amd) {
|
|
22
|
+
// AMD. Register as an anonymous module.
|
|
23
|
+
define(['exports', 'echarts'], factory);
|
|
24
|
+
} else if (
|
|
25
|
+
typeof exports === 'object' &&
|
|
26
|
+
typeof exports.nodeName !== 'string'
|
|
27
|
+
) {
|
|
28
|
+
// CommonJS
|
|
29
|
+
factory(exports, require('echarts'));
|
|
30
|
+
} else {
|
|
31
|
+
// Browser globals
|
|
32
|
+
factory({}, root.echarts);
|
|
33
|
+
}
|
|
34
|
+
})(this, function(exports, echarts) {
|
|
35
|
+
var log = function(msg) {
|
|
36
|
+
if (typeof console !== 'undefined') {
|
|
37
|
+
console && console.error && console.error(msg);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
if (!echarts) {
|
|
41
|
+
log('ECharts is not Loaded');
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
var colorPalette = [
|
|
46
|
+
'#4d4d4d',
|
|
47
|
+
'#3a5897',
|
|
48
|
+
'#007bb6',
|
|
49
|
+
'#7094db',
|
|
50
|
+
'#0080ff',
|
|
51
|
+
'#b3b3ff',
|
|
52
|
+
'#00bdec',
|
|
53
|
+
'#33ccff',
|
|
54
|
+
'#ccddff',
|
|
55
|
+
'#eeeeee'
|
|
56
|
+
];
|
|
57
|
+
|
|
58
|
+
var theme = {
|
|
59
|
+
color: colorPalette,
|
|
60
|
+
|
|
61
|
+
title: {
|
|
62
|
+
textStyle: {
|
|
63
|
+
fontWeight: 'normal',
|
|
64
|
+
color: '#00aecd'
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
|
|
68
|
+
visualMap: {
|
|
69
|
+
color: ['#00aecd', '#a2d4e6']
|
|
70
|
+
},
|
|
71
|
+
|
|
72
|
+
toolbox: {
|
|
73
|
+
color: ['#00aecd', '#00aecd', '#00aecd', '#00aecd']
|
|
74
|
+
},
|
|
75
|
+
|
|
76
|
+
tooltip: {
|
|
77
|
+
backgroundColor: 'rgba(0,0,0,0.5)',
|
|
78
|
+
axisPointer: {
|
|
79
|
+
// Axis indicator, coordinate trigger effective
|
|
80
|
+
type: 'line', // The default is a straight line: 'line' | 'shadow'
|
|
81
|
+
lineStyle: {
|
|
82
|
+
// Straight line indicator style settings
|
|
83
|
+
color: '#00aecd',
|
|
84
|
+
type: 'dashed'
|
|
85
|
+
},
|
|
86
|
+
crossStyle: {
|
|
87
|
+
color: '#00aecd'
|
|
88
|
+
},
|
|
89
|
+
shadowStyle: {
|
|
90
|
+
// Shadow indicator style settings
|
|
91
|
+
color: 'rgba(200,200,200,0.3)'
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
|
|
96
|
+
// Area scaling controller
|
|
97
|
+
dataZoom: {
|
|
98
|
+
dataBackgroundColor: '#eee', // Data background color
|
|
99
|
+
fillerColor: 'rgba(144,197,237,0.2)', // Fill the color
|
|
100
|
+
handleColor: '#00aecd' // Handle color
|
|
101
|
+
},
|
|
102
|
+
|
|
103
|
+
timeline: {
|
|
104
|
+
lineStyle: {
|
|
105
|
+
color: '#00aecd'
|
|
106
|
+
},
|
|
107
|
+
controlStyle: {
|
|
108
|
+
normal: { color: '#00aecd' },
|
|
109
|
+
emphasis: { color: '#00aecd' }
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
|
|
113
|
+
candlestick: {
|
|
114
|
+
itemStyle: {
|
|
115
|
+
color: '#ddd',
|
|
116
|
+
color0: '#eee'
|
|
117
|
+
},
|
|
118
|
+
lineStyle: {
|
|
119
|
+
width: 1,
|
|
120
|
+
color: '#33ccff',
|
|
121
|
+
color0: '#1bb4cf'
|
|
122
|
+
},
|
|
123
|
+
areaStyle: {
|
|
124
|
+
color: '#7094db',
|
|
125
|
+
color0: '#33ccff'
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
|
|
129
|
+
chord: {
|
|
130
|
+
padding: 4,
|
|
131
|
+
itemStyle: {
|
|
132
|
+
color: '#7094db',
|
|
133
|
+
borderWidth: 1,
|
|
134
|
+
borderColor: 'rgba(128, 128, 128, 0.5)'
|
|
135
|
+
},
|
|
136
|
+
lineStyle: {
|
|
137
|
+
color: 'rgba(128, 128, 128, 0.5)'
|
|
138
|
+
},
|
|
139
|
+
areaStyle: {
|
|
140
|
+
color: '#33ccff'
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
|
|
144
|
+
graph: {
|
|
145
|
+
itemStyle: {
|
|
146
|
+
color: '#7094db'
|
|
147
|
+
},
|
|
148
|
+
linkStyle: {
|
|
149
|
+
color: '#33ccff'
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
|
|
153
|
+
map: {
|
|
154
|
+
itemStyle: {
|
|
155
|
+
color: '#7094db'
|
|
156
|
+
},
|
|
157
|
+
areaStyle: {
|
|
158
|
+
color: '#33ccff'
|
|
159
|
+
},
|
|
160
|
+
label: {
|
|
161
|
+
color: '#ddd'
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
|
|
165
|
+
gauge: {
|
|
166
|
+
axisLine: {
|
|
167
|
+
lineStyle: {
|
|
168
|
+
color: [
|
|
169
|
+
[0.2, '#dddddd'],
|
|
170
|
+
[0.8, '#00aecd'],
|
|
171
|
+
[1, '#33ccff']
|
|
172
|
+
],
|
|
173
|
+
width: 8
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
echarts.registerTheme('tech-blue', theme);
|
|
180
|
+
});
|