配置项如下
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-15 17:35:03',
'2015-08-15 17:50:03',
'2015-08-15 18:05:03',
'2015-08-15 18:20:03',
'2015-08-15 18:35:03',
'2015-08-15 18:50:03',
'2015-08-15 19:05:03',
'2015-08-15 19:20:03',
'2015-08-15 19:35:03',
'2015-08-15 19:50:03',
'2015-08-15 20:05:03',
'2015-08-15 20:20:03',
'2015-08-15 20:35:03',
'2015-08-15 20:50:03',
'2015-08-15 21:05:03',
'2015-08-15 21:20:03',
'2015-08-15 21:35:03',
'2015-08-15 21:50:03',
'2015-08-15 22:05:03',
'2015-08-15 22:20:03',
'2015-08-15 22:35:03',
'2015-08-15 22:50:03',
'2015-08-15 23:05:03',
'2015-08-15 23:20:03',
'2015-08-15 23:35:03',
'2015-08-15 23:50:03',
'2015-08-16 00:05:03',
'2015-08-16 00:20:03',
'2015-08-16 00:35:03',
'2015-08-16 00:50:03',
'2015-08-16 01:05:03',
'2015-08-16 01:20:03',
'2015-08-16 01:35:03',
'2015-08-16 01:50:03',
'2015-08-16 02:05:03',
'2015-08-16 02:20:03',
'2015-08-16 02:35:03',
'2015-08-16 02:50:03',
'2015-08-16 03:05:03',
'2015-08-16 03:20:03',
'2015-08-16 03:35:03',
'2015-08-16 03:50:03',
'2015-08-16 04:05:03',
'2015-08-16 04:20:03',
'2015-08-16 04:35:03',
'2015-08-16 04:50:03',
'2015-08-16 05:05:03',
'2015-08-16 05:20:03',
'2015-08-16 05:35:03',
'2015-08-16 05:50:03',
'2015-08-16 06:05:03',
'2015-08-16 06:20:03',
'2015-08-16 06:35:03',
'2015-08-16 06:50:03',
'2015-08-16 07:05:03',
'2015-08-16 07:20:03',
'2015-08-16 07:35:03',
'2015-08-16 07:50:03',
'2015-08-16 08:05:03',
'2015-08-16 08:20:03',
'2015-08-16 08:35:03',
'2015-08-16 08:50:03',
'2015-08-16 09:05:03',
'2015-08-16 09:20:03',
'2015-08-16 09:35:03',
'2015-08-16 09:50:03',
'2015-08-16 10:05:03',
'2015-08-16 10:20:03',
'2015-08-16 10:35:03',
'2015-08-16 10:50:03',
'2015-08-16 11:05:03',
'2015-08-16 11:20:03',
'2015-08-16 11:35:03',
'2015-08-16 11:50:03',
'2015-08-16 12:05:03',
'2015-08-16 12:20:03',
'2015-08-16 12:35:03',
'2015-08-16 12:50:03',
'2015-08-16 13:05:03',
'2015-08-16 13:20:03',
'2015-08-16 13:35:03',
'2015-08-16 13:50:03',
'2015-08-16 14:05:03',
'2015-08-16 14:20:03',
'2015-08-16 14:35:03',
'2015-08-16 14:50:03',
'2015-08-16 15:05:03',
'2015-08-16 15:20:03',
'2015-08-16 15:35:03',
'2015-08-16 15:50:03',
'2015-08-16 16:05:03',
'2015-08-16 16:20:03',
'2015-08-16 16:35:03',
'2015-08-16 16:50:03',
'2015-08-16 17:05:03',
'2015-08-16 17:20:03',
'2015-08-16 17:35:03',
'2015-08-16 17:50:03',
'2015-08-16 18:05:03',
'2015-08-16 18:20:03',
'2015-08-16 18:35:03',
'2015-08-16 18:50:03',
'2015-08-16 19:05:03',
'2015-08-16 19:20:03',
'2015-08-16 19:35:03',
'2015-08-16 19:50:03',
'2015-08-16 20:05:03',
'2015-08-16 20:20:03',
'2015-08-16 20:35:03',
'2015-08-16 20:50:03',
'2015-08-16 21:05:03',
'2015-08-16 21:20:03',
'2015-08-16 21:35:03',
'2015-08-16 21:50:03',
'2015-08-16 22:05:03',
'2015-08-16 22:20:03',
'2015-08-16 22:35:03',
'2015-08-16 22:50:03',
'2015-08-16 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, 1, 2, 6, 5, 7, 7, 7, 6, 5, 4, 4, 9, 375, 336, 312, 280, 234, 196, 161, 125, 96, 68, 50, 33, 20, 12, 10, 12, 11, 10, 9, 10, 9, 9, 10, 9, 9, 10, 10, 9, 11, 11, 21, 49, 102, 152, 207, 267, 336, 395, 470, 521, 571, 631, 684, 733, 789, 824, 842, 852, 869, 872, 866, 862, 846, 841, 826, 787, 764, 741, 722, 687, 661, 651, 631, 622, 635, 633, 642, 659, 687, 705, 742, 750, 777, 799, 807, 818, 814, 817, 825, 809, 804, 791, 768, 743, 726, 685, 652, 644, 604, 587, 558, 544, 517, 494, 466, 433, 390, 354, 312, 261, 224, 186, 146, 104
] },
{
name: 'speed(m/min)',
type: 'line',
data: [0, 0, 0, 271.75519077823554, 129.9091730464049, 100.74322088130072, 206.88703181850508, 139.50689630637953, 130.2050212852452, 230.6801908454628, 266.77183058585973, 205.79440817977405, 238.14355617633768, 195.746808423081, 173.41492880908825, 259.6244097233962, 254.12596626125264, 242.9469649439668, 240.88216201339716, 236.97861486362092, 208.84779452876307, 178.40134849694863, 135.11674597517487, 113.72721687826188, 83.19211546839814, 36.61377915095415, 28.567096949695014, 56.67800822274979, 55.637423239707424, 37.8825354017486, 56.37983350073692, 30.66000974795319, 37.14368816514415, 48.91009482561185, 51.56409304964403, 79.32833906207661, 63.976847248648696, 78.08997045296762, 50.23230269737809, 49.54824049313751, 26.556567277075033, 28.407469594777446, 55.87684760516096, 74.70057354740267, 65.78469168122918, 74.58120700407858, 69.31731520889004, 125.22089335240223, 207.9746810887121, 247.97886335336048, 266.1760849033834, 262.7637423991024, 269.31875014612865, 263.17899442527886, 258.32022200504247, 266.81756731749476, 266.1766231036661, 259.4021414642443, 255.57512158646088, 251.79706086368026, 256.1887096987049, 255.162664849939, 257.695503117471, 248.51642878008082, 241.08275088108226, 232.54620309515084, 224.2994714151361, 231.30578492389301, 229.08892522277316, 229.04755423243702, 229.64174783451017, 227.6671885379876, 227.03421957263518, 234.3482795605845, 225.51119958843557, 231.41849011411236, 230.94912371763715, 229.6750614909789, 233.62773202842584, 232.23254165372967, 235.02347337214977, 234.67179819427335, 230.90907746952317, 237.94987153277907, 242.466993671693, 246.29177294975804, 249.63921548555592, 250.62975493406785, 249.06530505438553, 247.25839240757662, 252.03856515662955, 253.80855896669394, 251.71776593113347, 247.4598334539077, 233.49809412051496, 237.72330926320532, 236.3611097276682, 236.6241618697454, 238.75652193501975, 235.02895692561955, 242.63808460542157, 239.00732053755777, 234.34731202491298, 230.63803714084113, 224.04118419195134, 234.65162191024115, 229.39456734535773, 231.80883541901218, 245.03146103538552, 248.0138071029026, 254.52107103672458, 247.42175389320704, 248.63102886265006, 251.96636319404396, 239.58869116950194, 218.46007640860756, 192.79126081196168, 167.70485063743953, 127.34315398393517
] }/*{
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
] }*/]
};