配置项如下
app.title = '折柱混合';
//已修正
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', 'speed3(m/min)','speed','group','group3']
},
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: 'speed3(m/min)',
min: 0,
max: 1000,
axisLabel: {
formatter: '{value}m/min '
}
}],
series: [
{
name: 'group3',
type: 'bar',
yAxisIndex: 1,
data: [0, 0, 0, 1, 0, 1, 1, 2, 1, 0, 2, 0, 0, 0, 1, 1, 26, 55, 45, 46, 38, 23, 19, 17, 8, 9, 8, 7, 3, 1, 1, 1, 2, 3, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 9, 19, 30, 43, 66, 82, 95, 117, 126, 131, 135, 135, 165, 168, 161, 138, 146, 153, 125, 124, 128, 132, 109, 113, 104, 102, 110, 106, 94, 102, 97, 89, 88, 84, 94, 86, 85, 87, 93, 101, 106, 113, 109, 114, 122, 140, 121, 147, 133, 141, 156, 135, 127, 131, 130, 136, 114, 111, 119, 115, 107, 98, 94, 86, 80, 75, 65, 48, 39, 29, 24, 15]
},
{
name: 'group',
type: 'bar',
yAxisIndex: 1,
data: [1, 1, 1, 2, 2, 3, 4, 6, 5, 7, 6, 8, 7, 7, 6, 8, 368, 355, 312, 270, 232, 174, 125, 93, 61, 48, 33, 22, 17, 13, 11, 11, 11, 10, 11, 10, 9, 8, 7, 8, 7, 6, 6, 6, 7, 19, 63, 116, 183, 259, 356, 472, 586, 683, 777, 845, 884, 917, 929, 931, 945, 939, 935, 927, 912, 907, 891, 872, 847, 815, 815, 786, 728, 700, 666, 649, 637, 604, 595, 596, 582, 589, 608, 617, 623, 653, 661, 683, 702, 740, 763, 791, 813, 838, 862, 880, 886, 888, 884, 872, 859, 851, 831, 811, 778, 746, 702, 666, 617, 561, 513, 465, 430, 375, 329, 272, 219, 167, 122
] },
{
name: 'speed',
type: 'line',
yAxisIndex: 1,
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
] }, {
name: 'speed3(m/min)',
type: 'line',
yAxisIndex: 1,
data: [0, 0, 0, 442.5196283488672, 0, 316.27314039674314, 411.43894707622667, 376.0141054747269, 473.34859344433926, 0, 197.44202799339712, 0, 0, 0, 382.12841342865784, 218.45088900147846, 201.7693082295756, 324.40166160608356, 262.1913773804072, 268.66036763404367, 259.3595450357914, 263.659009423428, 266.6891560336731, 227.64725755414173, 166.92459716983572, 143.07326028688018, 31.943135564183606, 38.06076668092453, 61.160113629065755, 0.35841460156789284, 0.24631171813509553, 0.3728158936080339, 198.84493024041095, 104.94097826709096, 170.72543225819905, 149.89662655333996, 0.5048599819599875, 0.5108749216137017, 1.1014450317743352, 0.6517103685128017, 0.6394147566860954, 0.46868387269766465, 0.41161163648983057, 0.17210644256000487, 0.1791196086939457, 0.30031281529387743, 3.093726728736052, 31.480072297487514, 220.88918590434386, 247.9976872629166, 261.99940209785035, 267.32277330206136, 247.74127380954053, 281.1951786708822, 273.7917888753385, 271.50558236706274, 258.999081571631, 246.36470017212716, 239.734899996855, 227.99359668846728, 251.87272704864708, 247.94169212501976, 264.9937696816277, 267.5194643705865, 259.8094066913229, 274.7927278565313, 252.36989181240963, 247.01549777266618, 252.25801904871602, 255.02214664554933, 255.7067850863519, 247.7732044121413, 245.47078938296812, 250.64662093742467, 245.4295719605469, 280.48175451640753, 264.1907648813696, 257.58088756344523, 262.3993790052202, 229.50052082839105, 236.22653169088898, 245.25004739603193, 260.08291470384336, 256.88021363338106, 261.5167008303032, 254.86852995014038, 248.29397508582593, 250.55126858973713, 240.85985740554017, 269.2304557634346, 262.6066126042074, 262.1719321750906, 237.4416589786141, 253.95712149534057, 244.0171214071267, 254.40353270538463, 221.41654751270912, 248.59705735209863, 239.5205894664961, 243.55468075327727, 262.4001503932912, 263.24161924147995, 277.3917044884313, 249.69955978106685, 270.2271352520003, 284.7566680327659, 286.83192078914067, 261.23420044299223, 276.51545559036947, 260.837280892044, 274.6021840584223, 290.6762546192441, 268.7354393103475, 250.30732891519145, 300.74307743353154, 216.43140276759755, 239.86472432357598, 214.84103121151233, 225.05134310986415
] }]
};