|
@@ -42,7 +42,7 @@ function createLineOptions(source = []) {
|
42
|
42
|
left: '10%',
|
43
|
43
|
right: '8%',
|
44
|
44
|
bottom: '12%',
|
45
|
|
- top: '10%',
|
|
45
|
+ top: '15%',
|
46
|
46
|
},
|
47
|
47
|
series: [],
|
48
|
48
|
}
|
|
@@ -55,28 +55,9 @@ function createLineOptions(source = []) {
|
55
|
55
|
...defaultOpt,
|
56
|
56
|
dataset: { source },
|
57
|
57
|
dataZoom: [{
|
58
|
|
- type: 'slider',
|
|
58
|
+ type: 'inside',
|
59
|
59
|
startValue, endValue,
|
60
|
60
|
show: true,
|
61
|
|
- xAxisIndex: [0],
|
62
|
|
- handleSize: 10,//滑动条的 左右2个滑动条的大小
|
63
|
|
- height: 20,//组件高度
|
64
|
|
- left: 30, //左边的距离
|
65
|
|
- right: 30,//右边的距离
|
66
|
|
- bottom: 0,//下边的距离
|
67
|
|
- handleColor: 'rgba(0,0,0,0.1)',//h滑动图标的颜色
|
68
|
|
- realtime : true,
|
69
|
|
- handleStyle: {
|
70
|
|
- borderColor: "#999",
|
71
|
|
- borderWidth: "1",
|
72
|
|
- shadowBlur: 2,
|
73
|
|
- background: "rgba(0,0,0,0.1)",
|
74
|
|
- shadowColor: "rgba(0,0,0,0.1)",
|
75
|
|
- },
|
76
|
|
- backgroundColor: 'rgba(0,0,0,0.1)',//两边未选中的滑动条区域的颜色
|
77
|
|
- showDataShadow: false,//是否显示数据阴影 默认auto
|
78
|
|
- showDetail: false,
|
79
|
|
-
|
80
|
61
|
}],
|
81
|
62
|
series: [{
|
82
|
63
|
type: 'line',
|