1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
| function option2 (name) {
| var option = {
| title : {
| x: 'center',
| y: 'top',
| textStyle:{
| fontSize: 14
| }
| },
| tooltip : {
| trigger: 'item'
| },
| dataRange: {
| min: 0,
| itemWidth:8,
| itemGap: 5,
| x: 'left',
| y: 'bottom'
| },
| series : [
| {
| type: 'map',
| mapType: 'china'
| }
| ]
| };
| var color = eColorMap[name];
| option.title.text = eNameMap[name] + ' (亿元)';
| option.title.textStyle.color = color;
| option.dataRange.color = [
| color,
| require('zrender/tool/color').lift(color, -0.9)
| ];
| option.dataRange.max = dataMap['data' + name][curYear + 'max'];
|
| for (var i = 0, l = option.series.length; i < l; i++) {
| option.series[i].name = eNameMap[name] + '(' + curYear + ')';
| option.series[i].data =
| dataMap['data' + name][curYear]
| }
|
| return option;
| }
|
|