配置项如下
app.title = '折柱混合';
//已修正2
option = {
tooltip: {
trigger: 'axis'
},
dataZoom: [{ // 这个dataZoom组件,默认控制x轴。
type: 'slider', // 这个 dataZoom 组件是 slider 型 dataZoom 组件
start: 10, // 左边在 10% 的位置。
end: 60 // 右边在 60% 的位置。
}, { // 这个dataZoom组件,也控制x轴。
type: 'inside', // 这个 dataZoom 组件是 inside 型 dataZoom 组件
start: 10, // 左边在 10% 的位置。
end: 60 // 右边在 60% 的位置。
}],
toolbox: {
feature: {
dataView: {
show: true,
readOnly: false
},
magicType: {
show: true,
type: ['line', 'bar']
},
restore: {
show: true
},
saveAsImage: {
show: true
}
}
},
legend: {
data: ['Time', 'speed(m/min)']
},
xAxis: [{
type: 'category',
data: [
'2015-08-18 17:35:03',
'2015-08-18 17:50:03',
'2015-08-18 18:05:03',
'2015-08-18 18:20:03',
'2015-08-18 18:35:03',
'2015-08-18 18:50:03',
'2015-08-18 19:05:03',
'2015-08-18 19:20:03',
'2015-08-18 19:35:03',
'2015-08-18 19:50:03',
'2015-08-18 20:05:03',
'2015-08-18 20:20:03',
'2015-08-18 20:35:03',
'2015-08-18 20:50:03',
'2015-08-18 21:05:03',
'2015-08-18 21:20:03',
'2015-08-18 21:35:03',
'2015-08-18 21:50:03',
'2015-08-18 22:05:03',
'2015-08-18 22:20:03',
'2015-08-18 22:35:03',
'2015-08-18 22:50:03',
'2015-08-18 23:05:03',
'2015-08-18 23:20:03',
'2015-08-18 23:35:03',
'2015-08-18 23:50:03',
'2015-08-19 00:05:03',
'2015-08-19 00:20:03',
'2015-08-19 00:35:03',
'2015-08-19 00:50:03',
'2015-08-19 01:05:03',
'2015-08-19 01:20:03',
'2015-08-19 01:35:03',
'2015-08-19 01:50:03',
'2015-08-19 02:05:03',
'2015-08-19 02:20:03',
'2015-08-19 02:35:03',
'2015-08-19 02:50:03',
'2015-08-19 03:05:03',
'2015-08-19 03:20:03',
'2015-08-19 03:35:03',
'2015-08-19 03:50:03',
'2015-08-19 04:05:03',
'2015-08-19 04:20:03',
'2015-08-19 04:35:03',
'2015-08-19 04:50:03',
'2015-08-19 05:05:03',
'2015-08-19 05:20:03',
'2015-08-19 05:35:03',
'2015-08-19 05:50:03',
'2015-08-19 06:05:03',
'2015-08-19 06:20:03',
'2015-08-19 06:35:03',
'2015-08-19 06:50:03',
'2015-08-19 07:05:03',
'2015-08-19 07:20:03',
'2015-08-19 07:35:03',
'2015-08-19 07:50:03',
'2015-08-19 08:05:03',
'2015-08-19 08:20:03',
'2015-08-19 08:35:03',
'2015-08-19 08:50:03',
'2015-08-19 09:05:03',
'2015-08-19 09:20:03',
'2015-08-19 09:35:03',
'2015-08-19 09:50:03',
'2015-08-19 10:05:03',
'2015-08-19 10:20:03',
'2015-08-19 10:35:03',
'2015-08-19 10:50:03',
'2015-08-19 11:05:03',
'2015-08-19 11:20:03',
'2015-08-19 11:35:03',
'2015-08-19 11:50:03',
'2015-08-19 12:05:03',
'2015-08-19 12:20:03',
'2015-08-19 12:35:03',
'2015-08-19 12:50:03',
'2015-08-19 13:05:03',
'2015-08-19 13:20:03',
'2015-08-19 13:35:03',
'2015-08-19 13:50:03',
'2015-08-19 14:05:03',
'2015-08-19 14:20:03',
'2015-08-19 14:35:03',
'2015-08-19 14:50:03',
'2015-08-19 15:05:03',
'2015-08-19 15:20:03',
'2015-08-19 15:35:03',
'2015-08-19 15:50:03',
'2015-08-19 16:05:03',
'2015-08-19 16:20:03',
'2015-08-19 16:35:03',
'2015-08-19 16:50:03',
'2015-08-19 17:05:03',
'2015-08-19 17:20:03',
'2015-08-19 17:35:03',
'2015-08-19 17:50:03',
'2015-08-19 18:05:03',
'2015-08-19 18:20:03',
'2015-08-19 18:35:03',
'2015-08-19 18:50:03',
'2015-08-19 19:05:03',
'2015-08-19 19:20:03',
'2015-08-19 19:35:03',
'2015-08-19 19:50:03',
'2015-08-19 20:05:03',
'2015-08-19 20:20:03',
'2015-08-19 20:35:03',
'2015-08-19 20:50:03',
'2015-08-19 21:05:03',
'2015-08-19 21:20:03',
'2015-08-19 21:35:03',
'2015-08-19 21:50:03',
'2015-08-19 22:05:03',
'2015-08-19 22:20:03',
'2015-08-19 22:35:03',
'2015-08-19 22:50:03',
'2015-08-19 23:05:03',
]
}],
yAxis: [{
type: 'value',
name: 'group',
min: 0,
max: 1000,
axisLabel: {
formatter: '{value} '
}
}, {
type: 'value',
name: 'speed(m/min)',
min: 0,
max: 1000,
axisLabel: {
formatter: '{value}m/min '
}
}],
series: [{
name: 'group',
type: 'bar',
//yAxisIndex: 1,
data: [0, 0, 0, 0, 1, 2, 3, 0, 1, 2, 3, 3, 7, 9, 13, 453, 437, 391, 340, 298, 253, 200, 150, 99, 67, 48, 37, 24, 13, 11, 10, 9, 9, 9, 9, 8, 8, 8, 8, 8, 8, 8, 8, 9, 8, 20, 51, 100, 159, 209, 277, 335, 400, 468, 515, 577, 633, 687, 740, 768, 818, 842, 861, 875, 879, 875, 870, 860, 847, 835, 816, 792, 767, 736, 720, 695, 664, 639, 623, 619, 646, 657, 666, 671, 701, 734, 754, 777, 787, 807, 822, 825, 832, 824, 814, 807, 801, 774, 760, 743, 721, 699, 665, 633, 604, 571, 540, 519, 482, 453, 413, 380, 337, 310, 277, 231, 192, 154, 118
] },
{
name: 'speed(m/min)',
type: 'line',
data: [0, 0, 0, 0, 12.109165575270092, 225.54914581785457, 210.60932992636359, 0, 21.68951582372936, 17.62996959369527, 270.1492180622201, 260.8420960623576, 281.06764144440365, 213.93658684959016, 298.6523977759698, 234.70051514174293, 229.53031034490397, 217.6522175600866, 221.14331380870772, 203.13990456050468, 186.55148352843545, 158.8325226425335, 148.49913120901633, 122.11807332427051, 95.16494686512658, 75.6882330170966, 55.603573557873226, 75.21318381509934, 94.96383447807203, 126.80092586741027, 105.28692581668017, 103.11851075371744, 72.00580318680372, 76.87738637325504, 61.76802769968942, 40.02306088250473, 43.23207564175111, 65.52285152525076, 98.11472286782386, 77.74827406145057, 108.17616483798203, 117.78709553844386, 121.58013103366429, 108.97129372182177, 63.47706497400935, 35.10417432199147, 62.71696675125687, 126.48793276343173, 198.66001927011763, 236.09836051608963, 257.65489341339514, 258.69483124834073, 268.208687849499, 259.32554470454244, 257.0351352591499, 252.2661258755223, 250.3719256369276, 255.34000495717618, 253.83154786883608, 248.86912278186588, 245.8014953424828, 245.62508685317596, 244.3661083114651, 238.71875841164592, 235.03544094398464, 232.00090541717768, 233.6102476588824, 226.88408891279656, 225.09569756403965, 224.5861544784934, 220.42500487828232, 218.43499171151194, 223.92812508687103, 229.51277354477614, 221.88761471006143, 225.58456658923095, 227.46278766231356, 228.57795256653148, 225.89662626682002, 231.60276317098334, 239.46845566656884, 235.34439755443665, 237.46470154499357, 242.30741249804936, 241.5331036895842, 233.569046297327, 239.97660046640215, 241.1593397619564, 243.12101283362514, 247.52145428905314, 248.00660040334142, 245.40405533708042, 242.58169510079216, 242.5492573672763, 232.71241198818788, 231.5042609585607, 227.57677180416238, 225.89352554519712, 220.3468390672077, 220.2490881496373, 230.80515172811772, 232.21747751417647, 232.4131891161665, 233.00601672858699, 231.79399470894805, 230.48393485081942, 230.66470672065026, 227.77906512203006, 236.21370876358662, 252.31085833906477, 248.70568955147456, 265.917706277335, 260.7557969764306, 243.81389707688143, 242.56646193034206, 233.57294028807578, 202.37805580425075, 172.11143417954204, 129.77841548750462
] }/*{
name: 'speed(m/min)',
type: 'line',
data: [0.0, 69.6529161710857, 318.2759427656147, 171.49001559772893, 188.0268992490197, 339.42986474959537, 240.68967877053342, 228.50624781336145, 206.99801518036665, 193.51226553089253, 225.58319452711575, 167.96146455393202, 207.78988857036606, 188.58765681746493, 298.7391331275312, 282.93869070422693, 244.47751046391227, 233.59993436779317, 222.14070729471592, 211.60267008262753, 181.3836882571177, 157.73613749771587, 140.892409957325, 112.57456275636241, 96.00444016229794, 82.51527499123469, 54.01997691097203, 61.00072150675817, 86.1262637031219, 72.26949680221698, 91.10054778692101, 111.51001362629671, 85.95013622702946, 124.97078909003963, 120.75668890018984, 79.17688140336034, 67.72253077035414, 21.630952118532083, 13.868740251662297, 15.301169617942, 23.439078079223187, 14.458909062731164, 9.16087949739492, 24.45284027956526, 15.05283795207305, 48.46474870936043, 47.85610084975943, 97.57129550502513, 184.37389857704534, 222.58014056938282, 231.68815875812723, 231.39932147696655, 238.47671997185338, 238.87546905148986, 235.64242713521313, 229.80919888768358, 221.94387966483674, 214.05725849474416, 207.08311345825413, 212.2701372738831, 212.80864488834257, 219.91613620383484, 220.27022329740558, 224.04509242087772, 225.01449601304077, 220.3731793557828, 210.82799593178444, 213.29975608273094, 214.74484063308267, 215.88178689878058, 205.72804711117962, 198.925331245655, 214.04087251203904, 217.9074443224964, 222.91771609597927, 224.9940382986558, 214.83893433713985, 221.40014070004023, 215.37582995791854, 205.49335577483603, 210.0592422962401, 214.92983112390482, 214.30009454189027, 214.28226118793685, 220.30338507499926, 215.4903719111466, 223.75497689145928, 227.87885428406508, 233.28011428030646, 227.74694620100695, 230.78557544470902, 230.3629753325236, 231.17969615035753, 235.29749902884956, 227.7914663271955, 225.9199244164338, 213.92924652055794, 217.06271150722284, 210.18727839393847, 216.38219125309706, 221.08342540561705, 220.41826007627475, 225.49379947745103, 223.4434492444689, 224.82149562438062, 220.62095344478942, 222.45910071150982, 226.10031316372715, 227.68183104904, 226.75596835137773, 234.21749453415586, 235.89961933343662, 227.52185492203148, 222.50281614219028, 216.83564670243825, 192.53953459270568, 174.2267833739287, 160.8655363770933, 139.99957928004648
] }*/]
};