echarts 4.4.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/.github/ISSUE_TEMPLATE.md +1 -1
- package/.github/workflows/nodejs.yml +31 -0
- package/CONTRIBUTING.md +2 -2
- package/README.md +6 -12
- package/dist/echarts-en.common.js +2354 -1029
- package/dist/echarts-en.common.min.js +1 -1
- package/dist/echarts-en.js +2727 -1138
- package/dist/echarts-en.js.map +1 -1
- package/dist/echarts-en.min.js +1 -1
- package/dist/echarts-en.simple.js +2028 -759
- package/dist/echarts-en.simple.min.js +1 -1
- package/dist/echarts.common.js +2354 -1029
- package/dist/echarts.common.min.js +1 -1
- package/dist/echarts.js +2727 -1138
- package/dist/echarts.js.map +1 -1
- package/dist/echarts.min.js +1 -1
- package/dist/echarts.simple.js +2028 -759
- package/dist/echarts.simple.min.js +1 -1
- package/dist/extension/dataTool.js +9 -0
- package/dist/extension/dataTool.js.map +1 -1
- package/echarts.all.js +1 -1
- package/lib/chart/bar/BarSeries.js +4 -1
- package/lib/chart/bar/BarView.js +20 -6
- package/lib/chart/bar/BaseBarSeries.js +5 -1
- package/lib/chart/candlestick/CandlestickSeries.js +1 -0
- package/lib/chart/candlestick/CandlestickView.js +42 -1
- package/lib/chart/custom.js +1 -0
- package/lib/chart/effectScatter/EffectScatterSeries.js +3 -1
- package/lib/chart/funnel/FunnelSeries.js +15 -5
- package/lib/chart/gauge/GaugeSeries.js +0 -9
- package/lib/chart/graph/GraphSeries.js +11 -4
- package/lib/chart/graph/GraphView.js +28 -8
- package/lib/chart/graph/forceHelper.js +8 -2
- package/lib/chart/graph/forceLayout.js +5 -2
- package/lib/chart/heatmap/HeatmapView.js +4 -4
- package/lib/chart/helper/Symbol.js +8 -0
- 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/chart/tree/TreeView.js +4 -2
- package/lib/component/axis/AngleAxisView.js +97 -20
- 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/brush/BrushView.js +6 -0
- package/lib/component/brush/brushAction.js +5 -0
- package/lib/component/dataZoom/DataZoomModel.js +15 -1
- package/lib/component/dataZoom/SliderZoomView.js +4 -10
- package/lib/component/helper/BrushController.js +43 -25
- package/lib/component/legend/LegendModel.js +3 -3
- package/lib/component/legend/LegendView.js +17 -13
- package/lib/component/toolbox/ToolboxView.js +16 -7
- package/lib/component/toolbox/feature/MagicType.js +19 -14
- package/lib/coord/Axis.js +44 -12
- package/lib/coord/axisDefault.js +21 -2
- package/lib/coord/axisTickLabelBuilder.js +9 -1
- package/lib/coord/cartesian/Cartesian2D.js +0 -15
- package/lib/coord/geo/geoJSONLoader.js +1 -1
- package/lib/coord/polar/polarCreator.js +11 -2
- package/lib/coord/radar/Radar.js +3 -1
- package/lib/coord/radar/RadarModel.js +4 -1
- package/lib/data/DataDiffer.js +2 -4
- package/lib/data/DataDimensionInfo.js +157 -0
- package/lib/data/List.js +29 -23
- 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 +136 -11
- package/lib/layout/barPolar.js +2 -2
- package/lib/model/Global.js +1 -1
- 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/util/number.js +25 -1
- package/lib/util/shape/sausage.js +93 -0
- package/lib/visual/LegendVisualProvider.js +75 -0
- package/lib/visual/dataColor.js +2 -12
- package/lib/visual/seriesColor.js +15 -7
- package/map/js/china.js +2 -2
- package/map/json/china.json +1 -1
- package/map/json/province/tianjin.json +1 -1
- package/package.json +3 -2
- package/src/chart/bar/BarSeries.js +5 -1
- package/src/chart/bar/BarView.js +24 -8
- package/src/chart/bar/BaseBarSeries.js +5 -1
- package/src/chart/candlestick/CandlestickSeries.js +2 -0
- package/src/chart/candlestick/CandlestickView.js +44 -1
- package/src/chart/custom.js +1 -0
- package/src/chart/effectScatter/EffectScatterSeries.js +1 -1
- package/src/chart/funnel/FunnelSeries.js +11 -4
- package/src/chart/gauge/GaugeSeries.js +0 -6
- package/src/chart/graph/GraphSeries.js +10 -3
- package/src/chart/graph/GraphView.js +26 -8
- package/src/chart/graph/forceHelper.js +7 -3
- package/src/chart/graph/forceLayout.js +6 -3
- package/src/chart/heatmap/HeatmapView.js +4 -4
- package/src/chart/helper/Symbol.js +9 -0
- package/src/chart/helper/createClipPathFromCoordSys.js +5 -1
- package/src/chart/helper/createGraphFromNodeEdge.js +1 -1
- 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/chart/tree/TreeView.js +5 -2
- package/src/component/axis/AngleAxisView.js +106 -19
- 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/brush/BrushView.js +6 -0
- package/src/component/brush/brushAction.js +6 -1
- package/src/component/dataZoom/DataZoomModel.js +15 -1
- package/src/component/dataZoom/SliderZoomView.js +4 -9
- package/src/component/helper/BrushController.js +50 -28
- package/src/component/legend/LegendModel.js +3 -3
- package/src/component/legend/LegendView.js +18 -12
- package/src/component/toolbox/ToolboxView.js +18 -5
- package/src/component/toolbox/feature/MagicType.js +18 -13
- package/src/coord/Axis.js +48 -13
- package/src/coord/axisDefault.js +25 -1
- package/src/coord/axisTickLabelBuilder.js +10 -0
- package/src/coord/cartesian/Cartesian2D.js +0 -13
- package/src/coord/geo/geoJSONLoader.js +2 -2
- package/src/coord/polar/polarCreator.js +16 -3
- package/src/coord/radar/Radar.js +3 -1
- package/src/coord/radar/RadarModel.js +5 -2
- package/src/data/DataDiffer.js +1 -4
- package/src/data/DataDimensionInfo.js +135 -0
- package/src/data/Graph.js +1 -1
- package/src/data/List.js +33 -20
- 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 +136 -13
- package/src/layout/barPolar.js +3 -2
- package/src/model/Global.js +1 -1
- 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/util/number.js +22 -2
- package/src/util/shape/sausage.js +93 -0
- 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/.travis.yml +0 -16
package/theme/dark.js
CHANGED
|
@@ -1,37 +1,38 @@
|
|
|
1
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
|
-
*/
|
|
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
19
|
|
|
20
|
-
(function
|
|
21
|
-
/* eslint-disable */
|
|
20
|
+
(function(root, factory) {
|
|
22
21
|
if (typeof define === 'function' && define.amd) {
|
|
23
22
|
// AMD. Register as an anonymous module.
|
|
24
23
|
define(['exports', 'echarts'], factory);
|
|
25
|
-
} else if (
|
|
24
|
+
} else if (
|
|
25
|
+
typeof exports === 'object' &&
|
|
26
|
+
typeof exports.nodeName !== 'string'
|
|
27
|
+
) {
|
|
26
28
|
// CommonJS
|
|
27
29
|
factory(exports, require('echarts'));
|
|
28
30
|
} else {
|
|
29
31
|
// Browser globals
|
|
30
32
|
factory({}, root.echarts);
|
|
31
33
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
var log = function (msg) {
|
|
34
|
+
})(this, function(exports, echarts) {
|
|
35
|
+
var log = function(msg) {
|
|
35
36
|
if (typeof console !== 'undefined') {
|
|
36
37
|
console && console.error && console.error(msg);
|
|
37
38
|
}
|
|
@@ -41,7 +42,7 @@
|
|
|
41
42
|
return;
|
|
42
43
|
}
|
|
43
44
|
var contrastColor = '#eee';
|
|
44
|
-
var axisCommon = function
|
|
45
|
+
var axisCommon = function() {
|
|
45
46
|
return {
|
|
46
47
|
axisLine: {
|
|
47
48
|
lineStyle: {
|
|
@@ -73,8 +74,17 @@
|
|
|
73
74
|
};
|
|
74
75
|
|
|
75
76
|
var colorPalette = [
|
|
76
|
-
'#dd6b66',
|
|
77
|
-
'#
|
|
77
|
+
'#dd6b66',
|
|
78
|
+
'#759aa0',
|
|
79
|
+
'#e69d87',
|
|
80
|
+
'#8dc1a9',
|
|
81
|
+
'#ea7e53',
|
|
82
|
+
'#eedd78',
|
|
83
|
+
'#73a373',
|
|
84
|
+
'#73b9bc',
|
|
85
|
+
'#7289ab',
|
|
86
|
+
'#91ca8c',
|
|
87
|
+
'#f49f42'
|
|
78
88
|
];
|
|
79
89
|
var theme = {
|
|
80
90
|
color: colorPalette,
|
|
@@ -86,6 +96,9 @@
|
|
|
86
96
|
},
|
|
87
97
|
crossStyle: {
|
|
88
98
|
color: contrastColor
|
|
99
|
+
},
|
|
100
|
+
label: {
|
|
101
|
+
color: '#000'
|
|
89
102
|
}
|
|
90
103
|
}
|
|
91
104
|
},
|
|
@@ -94,9 +107,6 @@
|
|
|
94
107
|
color: contrastColor
|
|
95
108
|
}
|
|
96
109
|
},
|
|
97
|
-
textStyle: {
|
|
98
|
-
color: contrastColor
|
|
99
|
-
},
|
|
100
110
|
title: {
|
|
101
111
|
textStyle: {
|
|
102
112
|
color: contrastColor
|
|
@@ -109,39 +119,30 @@
|
|
|
109
119
|
}
|
|
110
120
|
}
|
|
111
121
|
},
|
|
122
|
+
|
|
123
|
+
// Area scaling controller
|
|
112
124
|
dataZoom: {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
},
|
|
117
|
-
visualMap: {
|
|
118
|
-
textStyle: {
|
|
119
|
-
color: contrastColor
|
|
120
|
-
}
|
|
125
|
+
dataBackgroundColor: '#eee', // Data background color
|
|
126
|
+
fillerColor: 'rgba(200,200,200,0.2)', // Fill the color
|
|
127
|
+
handleColor: '#dd6b66' // Handle color
|
|
121
128
|
},
|
|
129
|
+
|
|
122
130
|
timeline: {
|
|
131
|
+
itemStyle: {
|
|
132
|
+
color: colorPalette[1]
|
|
133
|
+
},
|
|
123
134
|
lineStyle: {
|
|
124
135
|
color: contrastColor
|
|
125
136
|
},
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
}
|
|
137
|
+
controlStyle: {
|
|
138
|
+
color: contrastColor,
|
|
139
|
+
borderColor: contrastColor
|
|
130
140
|
},
|
|
131
141
|
label: {
|
|
132
|
-
|
|
133
|
-
textStyle: {
|
|
134
|
-
color: contrastColor
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
controlStyle: {
|
|
139
|
-
normal: {
|
|
140
|
-
color: contrastColor,
|
|
141
|
-
borderColor: contrastColor
|
|
142
|
-
}
|
|
142
|
+
color: contrastColor
|
|
143
143
|
}
|
|
144
144
|
},
|
|
145
|
+
|
|
145
146
|
timeAxis: axisCommon(),
|
|
146
147
|
logAxis: axisCommon(),
|
|
147
148
|
valueAxis: axisCommon(),
|
|
@@ -153,24 +154,30 @@
|
|
|
153
154
|
graph: {
|
|
154
155
|
color: colorPalette
|
|
155
156
|
},
|
|
157
|
+
|
|
156
158
|
gauge: {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
color:
|
|
159
|
+
axisLine: {
|
|
160
|
+
lineStyle: {
|
|
161
|
+
color: [
|
|
162
|
+
[0.2, '#dd6b66'],
|
|
163
|
+
[0.8, '#759aa0'],
|
|
164
|
+
[1, '#ea7e53']
|
|
165
|
+
],
|
|
166
|
+
width: 8
|
|
160
167
|
}
|
|
161
168
|
}
|
|
162
169
|
},
|
|
170
|
+
|
|
163
171
|
candlestick: {
|
|
164
172
|
itemStyle: {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
borderColor0: '#0CF49B'
|
|
170
|
-
}
|
|
173
|
+
color: '#FD1050',
|
|
174
|
+
color0: '#0CF49B',
|
|
175
|
+
borderColor: '#FD1050',
|
|
176
|
+
borderColor0: '#0CF49B'
|
|
171
177
|
}
|
|
172
178
|
}
|
|
173
179
|
};
|
|
180
|
+
|
|
174
181
|
theme.categoryAxis.splitLine.show = false;
|
|
175
182
|
echarts.registerTheme('dark', theme);
|
|
176
|
-
})
|
|
183
|
+
});
|
package/theme/eduardo.js
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
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
|
+
'#59535e',
|
|
47
|
+
'#e7dcef',
|
|
48
|
+
'#f1baf3',
|
|
49
|
+
'#5d4970',
|
|
50
|
+
'#372049',
|
|
51
|
+
'#c0b2cd',
|
|
52
|
+
'#ffccff',
|
|
53
|
+
'#f2f0f5'
|
|
54
|
+
];
|
|
55
|
+
|
|
56
|
+
var theme = {
|
|
57
|
+
color: colorPalette,
|
|
58
|
+
|
|
59
|
+
title: {
|
|
60
|
+
textStyle: {
|
|
61
|
+
fontWeight: 'normal',
|
|
62
|
+
color: '#59535e'
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
|
|
66
|
+
visualMap: {
|
|
67
|
+
color: ['#59535e', '#e7dcef']
|
|
68
|
+
},
|
|
69
|
+
|
|
70
|
+
toolbox: {
|
|
71
|
+
color: ['#59535e', '#59535e', '#59535e', '#59535e']
|
|
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: '#59535e',
|
|
82
|
+
type: 'dashed'
|
|
83
|
+
},
|
|
84
|
+
crossStyle: {
|
|
85
|
+
color: '#59535e'
|
|
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: '#59535e' // Handle color
|
|
99
|
+
},
|
|
100
|
+
|
|
101
|
+
timeline: {
|
|
102
|
+
lineStyle: {
|
|
103
|
+
color: '#59535e'
|
|
104
|
+
},
|
|
105
|
+
controlStyle: {
|
|
106
|
+
color: '#59535e',
|
|
107
|
+
borderColor: '#59535e'
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
|
|
111
|
+
candlestick: {
|
|
112
|
+
itemStyle: {
|
|
113
|
+
color: '#e7dcef',
|
|
114
|
+
color0: '#f1baf3'
|
|
115
|
+
},
|
|
116
|
+
lineStyle: {
|
|
117
|
+
width: 1,
|
|
118
|
+
color: '#372049',
|
|
119
|
+
color0: '#5d4970'
|
|
120
|
+
},
|
|
121
|
+
areaStyle: {
|
|
122
|
+
color: '#59535e',
|
|
123
|
+
color0: '#e7dcef'
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
|
|
127
|
+
chord: {
|
|
128
|
+
padding: 4,
|
|
129
|
+
itemStyle: {
|
|
130
|
+
color: '#59535e',
|
|
131
|
+
borderWidth: 1,
|
|
132
|
+
borderColor: 'rgba(128, 128, 128, 0.5)'
|
|
133
|
+
},
|
|
134
|
+
lineStyle: {
|
|
135
|
+
color: 'rgba(128, 128, 128, 0.5)'
|
|
136
|
+
},
|
|
137
|
+
areaStyle: {
|
|
138
|
+
color: '#e7dcef'
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
|
|
142
|
+
map: {
|
|
143
|
+
itemStyle: {
|
|
144
|
+
color: '#ddd'
|
|
145
|
+
},
|
|
146
|
+
areaStyle: {
|
|
147
|
+
color: '#f1baf3'
|
|
148
|
+
},
|
|
149
|
+
label: {
|
|
150
|
+
color: '#c12e34'
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
|
|
154
|
+
graph: {
|
|
155
|
+
itemStyle: {
|
|
156
|
+
color: '#59535e'
|
|
157
|
+
},
|
|
158
|
+
linkStyle: {
|
|
159
|
+
color: '#59535e'
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
|
|
163
|
+
gauge: {
|
|
164
|
+
axisLine: {
|
|
165
|
+
lineStyle: {
|
|
166
|
+
color: [
|
|
167
|
+
[0.2, '#e7dcef'],
|
|
168
|
+
[0.8, '#59535e'],
|
|
169
|
+
[1, '#372049']
|
|
170
|
+
],
|
|
171
|
+
width: 8
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
echarts.registerTheme('eduardo', theme);
|
|
178
|
+
});
|
package/theme/forest.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
|
+
'#313b23',
|
|
47
|
+
'#494f2b',
|
|
48
|
+
'#606233',
|
|
49
|
+
'#d6b77b',
|
|
50
|
+
'#0e0e0e',
|
|
51
|
+
'#076278',
|
|
52
|
+
'#808080',
|
|
53
|
+
'#e7d5b1'
|
|
54
|
+
];
|
|
55
|
+
|
|
56
|
+
var theme = {
|
|
57
|
+
color: colorPalette,
|
|
58
|
+
|
|
59
|
+
title: {
|
|
60
|
+
textStyle: {
|
|
61
|
+
fontWeight: 'normal',
|
|
62
|
+
color: '#313b23'
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
|
|
66
|
+
visualMap: {
|
|
67
|
+
color: ['#313b23', '#494f2b']
|
|
68
|
+
},
|
|
69
|
+
|
|
70
|
+
toolbox: {
|
|
71
|
+
color: ['#313b23', '#313b23', '#313b23', '#313b23']
|
|
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: '#313b23',
|
|
82
|
+
type: 'dashed'
|
|
83
|
+
},
|
|
84
|
+
crossStyle: {
|
|
85
|
+
color: '#313b23'
|
|
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: '#313b23' // Handle color
|
|
99
|
+
},
|
|
100
|
+
|
|
101
|
+
timeline: {
|
|
102
|
+
lineStyle: {
|
|
103
|
+
color: '#313b23'
|
|
104
|
+
},
|
|
105
|
+
controlStyle: {
|
|
106
|
+
color: '#313b23',
|
|
107
|
+
borderColor: '#313b23'
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
|
|
111
|
+
candlestick: {
|
|
112
|
+
itemStyle: {
|
|
113
|
+
color: '#494f2b',
|
|
114
|
+
color0: '#606233'
|
|
115
|
+
},
|
|
116
|
+
lineStyle: {
|
|
117
|
+
width: 1,
|
|
118
|
+
color: '#0e0e0e',
|
|
119
|
+
color0: '#d6b77b'
|
|
120
|
+
},
|
|
121
|
+
areaStyle: {
|
|
122
|
+
color: '#494f2b',
|
|
123
|
+
color0: '#d6b77b'
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
|
|
127
|
+
map: {
|
|
128
|
+
itemStyle: {
|
|
129
|
+
color: '#606233'
|
|
130
|
+
},
|
|
131
|
+
areaStyle: {
|
|
132
|
+
color: '#ddd'
|
|
133
|
+
},
|
|
134
|
+
label: {
|
|
135
|
+
color: '#c12e34'
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
|
|
139
|
+
graph: {
|
|
140
|
+
itemStyle: {
|
|
141
|
+
color: '#494f2b'
|
|
142
|
+
},
|
|
143
|
+
linkStyle: {
|
|
144
|
+
color: '#313b23'
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
|
|
148
|
+
gauge: {
|
|
149
|
+
axisLine: {
|
|
150
|
+
lineStyle: {
|
|
151
|
+
color: [
|
|
152
|
+
[0.2, '#494f2b'],
|
|
153
|
+
[0.8, '#313b23'],
|
|
154
|
+
[1, '0e0e0e']
|
|
155
|
+
],
|
|
156
|
+
width: 8
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
echarts.registerTheme('forest', theme);
|
|
163
|
+
});
|
|
@@ -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
|
+
'#00a8c6',
|
|
47
|
+
'#40c0cb',
|
|
48
|
+
'#f0dec2',
|
|
49
|
+
'#aee239',
|
|
50
|
+
'#8fbe00',
|
|
51
|
+
'#33e0ff',
|
|
52
|
+
'#b3f4ff',
|
|
53
|
+
'#e6ff99'
|
|
54
|
+
];
|
|
55
|
+
|
|
56
|
+
var theme = {
|
|
57
|
+
color: colorPalette,
|
|
58
|
+
|
|
59
|
+
title: {
|
|
60
|
+
textStyle: {
|
|
61
|
+
fontWeight: 'normal',
|
|
62
|
+
color: '#00a8c6'
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
|
|
66
|
+
visualMap: {
|
|
67
|
+
color: ['#00a8c6', '#a2d4e6']
|
|
68
|
+
},
|
|
69
|
+
|
|
70
|
+
toolbox: {
|
|
71
|
+
color: ['#00a8c6', '#00a8c6', '#00a8c6', '#00a8c6']
|
|
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: '#00a8c6',
|
|
82
|
+
type: 'dashed'
|
|
83
|
+
},
|
|
84
|
+
crossStyle: {
|
|
85
|
+
color: '#00a8c6'
|
|
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(144,197,237,0.2)', // Fill the color
|
|
98
|
+
handleColor: '#00a8c6' // Handle color
|
|
99
|
+
},
|
|
100
|
+
|
|
101
|
+
timeline: {
|
|
102
|
+
lineStyle: {
|
|
103
|
+
color: '#00a8c6'
|
|
104
|
+
},
|
|
105
|
+
controlStyle: {
|
|
106
|
+
color: '#00a8c6',
|
|
107
|
+
borderColor: '#00a8c6'
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
|
|
111
|
+
candlestick: {
|
|
112
|
+
itemStyle: {
|
|
113
|
+
color: '#40c0cb',
|
|
114
|
+
color0: '#f0dec2'
|
|
115
|
+
},
|
|
116
|
+
lineStyle: {
|
|
117
|
+
width: 1,
|
|
118
|
+
color: '#8fbe00',
|
|
119
|
+
color0: '#aee239'
|
|
120
|
+
},
|
|
121
|
+
areaStyle: {
|
|
122
|
+
color: '#00a8c6',
|
|
123
|
+
color0: '#aee239'
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
|
|
127
|
+
map: {
|
|
128
|
+
itemStyle: {
|
|
129
|
+
color: '#ddd'
|
|
130
|
+
},
|
|
131
|
+
areaStyle: {
|
|
132
|
+
color: '#f0dec2'
|
|
133
|
+
},
|
|
134
|
+
label: {
|
|
135
|
+
color: '#c12e34'
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
|
|
139
|
+
graph: {
|
|
140
|
+
itemStyle: {
|
|
141
|
+
color: '#f0dec2'
|
|
142
|
+
},
|
|
143
|
+
linkStyle: {
|
|
144
|
+
color: '#00a8c6'
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
|
|
148
|
+
gauge: {
|
|
149
|
+
axisLine: {
|
|
150
|
+
lineStyle: {
|
|
151
|
+
color: [
|
|
152
|
+
[0.2, '#40c0cb'],
|
|
153
|
+
[0.8, '#00a8c6'],
|
|
154
|
+
[1, '#8fbe00']
|
|
155
|
+
],
|
|
156
|
+
width: 8
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
echarts.registerTheme('fresh-cut', theme);
|
|
163
|
+
});
|