配置项如下
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-17 17:35:03',
'2015-08-17 17:50:03',
'2015-08-17 18:05:03',
'2015-08-17 18:20:03',
'2015-08-17 18:35:03',
'2015-08-17 18:50:03',
'2015-08-17 19:05:03',
'2015-08-17 19:20:03',
'2015-08-17 19:35:03',
'2015-08-17 19:50:03',
'2015-08-17 20:05:03',
'2015-08-17 20:20:03',
'2015-08-17 20:35:03',
'2015-08-17 20:50:03',
'2015-08-17 21:05:03',
'2015-08-17 21:20:03',
'2015-08-17 21:35:03',
'2015-08-17 21:50:03',
'2015-08-17 22:05:03',
'2015-08-17 22:20:03',
'2015-08-17 22:35:03',
'2015-08-17 22:50:03',
'2015-08-17 23:05:03',
'2015-08-17 23:20:03',
'2015-08-17 23:35:03',
'2015-08-17 23:50:03',
'2015-08-18 00:05:03',
'2015-08-18 00:20:03',
'2015-08-18 00:35:03',
'2015-08-18 00:50:03',
'2015-08-18 01:05:03',
'2015-08-18 01:20:03',
'2015-08-18 01:35:03',
'2015-08-18 01:50:03',
'2015-08-18 02:05:03',
'2015-08-18 02:20:03',
'2015-08-18 02:35:03',
'2015-08-18 02:50:03',
'2015-08-18 03:05:03',
'2015-08-18 03:20:03',
'2015-08-18 03:35:03',
'2015-08-18 03:50:03',
'2015-08-18 04:05:03',
'2015-08-18 04:20:03',
'2015-08-18 04:35:03',
'2015-08-18 04:50:03',
'2015-08-18 05:05:03',
'2015-08-18 05:20:03',
'2015-08-18 05:35:03',
'2015-08-18 05:50:03',
'2015-08-18 06:05:03',
'2015-08-18 06:20:03',
'2015-08-18 06:35:03',
'2015-08-18 06:50:03',
'2015-08-18 07:05:03',
'2015-08-18 07:20:03',
'2015-08-18 07:35:03',
'2015-08-18 07:50:03',
'2015-08-18 08:05:03',
'2015-08-18 08:20:03',
'2015-08-18 08:35:03',
'2015-08-18 08:50:03',
'2015-08-18 09:05:03',
'2015-08-18 09:20:03',
'2015-08-18 09:35:03',
'2015-08-18 09:50:03',
'2015-08-18 10:05:03',
'2015-08-18 10:20:03',
'2015-08-18 10:35:03',
'2015-08-18 10:50:03',
'2015-08-18 11:05:03',
'2015-08-18 11:20:03',
'2015-08-18 11:35:03',
'2015-08-18 11:50:03',
'2015-08-18 12:05:03',
'2015-08-18 12:20:03',
'2015-08-18 12:35:03',
'2015-08-18 12:50:03',
'2015-08-18 13:05:03',
'2015-08-18 13:20:03',
'2015-08-18 13:35:03',
'2015-08-18 13:50:03',
'2015-08-18 14:05:03',
'2015-08-18 14:20:03',
'2015-08-18 14:35:03',
'2015-08-18 14:50:03',
'2015-08-18 15:05:03',
'2015-08-18 15:20:03',
'2015-08-18 15:35:03',
'2015-08-18 15:50:03',
'2015-08-18 16:05:03',
'2015-08-18 16:20:03',
'2015-08-18 16:35:03',
'2015-08-18 16:50:03',
'2015-08-18 17:05:03',
'2015-08-18 17:20:03',
'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',
]
}],
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, 1, 3, 4, 1, 3, 2, 3, 3, 3, 5, 5, 11, 415, 446, 403, 360, 321, 270, 236, 180, 133, 92, 62, 44, 28, 23, 16, 15, 15, 12, 11, 10, 9, 8, 9, 7, 6, 6, 6, 6, 7, 6, 8, 20, 52, 103, 175, 260, 359, 473, 581, 679, 761, 832, 885, 915, 930, 931, 931, 935, 927, 921, 899, 896, 877, 841, 817, 788, 764, 725, 689, 661, 641, 604, 581, 562, 559, 554, 562, 548, 557, 577, 595, 624, 639, 671, 693, 729, 758, 790, 826, 846, 875, 886, 896, 883, 885, 874, 865, 843, 827, 804, 770, 727, 683, 644, 594, 556, 510, 464, 410, 344, 302, 259, 224, 158, 0
] },
{
name: 'speed(m/min)',
type: 'line',
data: [0, 0, 0, 25.78810132806023, 173.56199875565514, 384.2513506038976, 194.85807800392223, 125.69736899140891, 153.1032233291253, 115.13101453735288, 304.0468333532466, 234.96507158896748, 203.38635983059277, 238.81486437026476, 250.81532339003556, 242.50573598825522, 244.9496785772908, 231.63097629024878, 228.98662378025216, 227.14459691959598, 202.5739974399157, 176.1562170117097, 143.27614134131892, 121.7746541074977, 96.23839219526006, 53.029319547493216, 68.19213437467214, 57.17596672345621, 72.9772362512218, 121.08541785709767, 96.2122131710469, 116.44991522026072, 100.51052121066805, 110.02748278863785, 91.96262810352013, 23.931401728663417, 15.260710030138005, 5.07448295681501, 2.919784817025102, 2.760638186270592, 2.9530948292183763, 7.828721353767686, 5.170973289095002, 3.021565679828659, 16.38811902680752, 15.977018347388956, 51.02515295570892, 120.40261332676586, 211.07144684326335, 239.79738786454303, 255.86904988121415, 246.46304773903188, 255.7231864742115, 249.12511777708048, 250.64289054919018, 245.71445545259022, 236.9411540720808, 230.98644769907983, 221.44747121361144, 223.7328721318204, 221.79924360329505, 226.50803751004653, 227.59660927473337, 226.03740694807027, 229.13118261533475, 225.3509523623754, 225.02208362275357, 231.86399702900522, 229.54065985067112, 226.97810742268476, 229.709947743601, 231.21244217751942, 224.71545665656595, 224.9715519811479, 230.9131759555495, 228.64420448020198, 229.7628017509646, 227.66901661810832, 228.22187286269386, 228.95346649832751, 232.42701511681793, 230.09479112824755, 234.026765953166, 233.56274118249354, 234.57058780060606, 240.50841401290552, 239.2909633461944, 238.96045013113311, 238.783398714394, 239.90882475974757, 240.23605048103082, 237.93694969364427, 237.3127693498525, 236.80102905012805, 227.60205090925194, 227.3374326727342, 213.18512794265675, 210.5140685892507, 211.043198658214, 210.18008777225106, 214.26626664161702, 219.32213781127328, 232.60027389998365, 228.09449290159296, 232.64417880883664, 231.59892433075572, 228.0152985694646, 237.8583164886395, 239.3266650225834, 243.02028849114353, 242.0476769010514, 254.19703242655368, 249.51188750602154, 249.10493642212407, 233.90334663981295, 227.31333318029382, 191.26236920198195, 198.84235601738396, 0
] }/*{
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
] }*/]
};