配置项如下
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-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',
'2015-08-16 23:20:03',
'2015-08-16 23:35:03',
'2015-08-16 23:50:03',
'2015-08-17 00:05:03',
'2015-08-17 00:20:03',
'2015-08-17 00:35:03',
'2015-08-17 00:50:03',
'2015-08-17 01:05:03',
'2015-08-17 01:20:03',
'2015-08-17 01:35:03',
'2015-08-17 01:50:03',
'2015-08-17 02:05:03',
'2015-08-17 02:20:03',
'2015-08-17 02:35:03',
'2015-08-17 02:50:03',
'2015-08-17 03:05:03',
'2015-08-17 03:20:03',
'2015-08-17 03:35:03',
'2015-08-17 03:50:03',
'2015-08-17 04:05:03',
'2015-08-17 04:20:03',
'2015-08-17 04:35:03',
'2015-08-17 04:50:03',
'2015-08-17 05:05:03',
'2015-08-17 05:20:03',
'2015-08-17 05:35:03',
'2015-08-17 05:50:03',
'2015-08-17 06:05:03',
'2015-08-17 06:20:03',
'2015-08-17 06:35:03',
'2015-08-17 06:50:03',
'2015-08-17 07:05:03',
'2015-08-17 07:20:03',
'2015-08-17 07:35:03',
'2015-08-17 07:50:03',
'2015-08-17 08:05:03',
'2015-08-17 08:20:03',
'2015-08-17 08:35:03',
'2015-08-17 08:50:03',
'2015-08-17 09:05:03',
'2015-08-17 09:20:03',
'2015-08-17 09:35:03',
'2015-08-17 09:50:03',
'2015-08-17 10:05:03',
'2015-08-17 10:20:03',
'2015-08-17 10:35:03',
'2015-08-17 10:50:03',
'2015-08-17 11:05:03',
'2015-08-17 11:20:03',
'2015-08-17 11:35:03',
'2015-08-17 11:50:03',
'2015-08-17 12:05:03',
'2015-08-17 12:20:03',
'2015-08-17 12:35:03',
'2015-08-17 12:50:03',
'2015-08-17 13:05:03',
'2015-08-17 13:20:03',
'2015-08-17 13:35:03',
'2015-08-17 13:50:03',
'2015-08-17 14:05:03',
'2015-08-17 14:20:03',
'2015-08-17 14:35:03',
'2015-08-17 14:50:03',
'2015-08-17 15:05:03',
'2015-08-17 15:20:03',
'2015-08-17 15:35:03',
'2015-08-17 15:50:03',
'2015-08-17 16:05:03',
'2015-08-17 16:20:03',
'2015-08-17 16:35:03',
'2015-08-17 16:50:03',
'2015-08-17 17:05:03',
'2015-08-17 17:20:03',
'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',
]
}],
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, 0, 0, 0, 1, 1, 2, 0, 0, 0, 1, 0, 0, 30, 67, 61, 52, 37, 37, 20, 14, 8, 7, 4, 3, 4, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 7, 15, 29, 41, 59, 80, 98, 116, 122, 133, 145, 152, 157, 162, 166, 150, 161, 137, 133, 127, 122, 124, 125, 119, 113, 102, 106, 99, 86, 86, 81, 84, 84, 80, 82, 93, 98, 92, 89, 94, 104, 110, 108, 126, 119, 129, 134, 140, 139, 134, 152, 155, 141, 148, 139, 139, 118, 109, 107, 114, 96, 102, 85, 88, 75, 71, 59, 43, 11, 0, 0, 0
] },
{
name: 'group',
type: 'bar',
yAxisIndex: 1,
data: [0, 0, 2, 4, 4, 8, 7, 9, 8, 9, 7, 9, 11, 8, 10, 368, 360, 317, 266, 230, 191, 152, 108, 75, 48, 30, 21, 13, 8, 9, 9, 9, 8, 8, 8, 8, 8, 7, 7, 7, 8, 8, 9, 9, 11, 21, 50, 118, 189, 273, 368, 473, 575, 692, 777, 828, 881, 909, 929, 935, 932, 932, 934, 928, 921, 906, 876, 847, 818, 795, 782, 746, 715, 672, 644, 605, 579, 566, 551, 534, 547, 567, 568, 586, 596, 622, 641, 666, 701, 733, 763, 781, 813, 841, 874, 885, 894, 898, 893, 875, 856, 843, 822, 792, 770, 720, 674, 632, 586, 540, 484, 440, 394, 350, 304, 234, 0, 2, 0
] },
{
name: 'speed',
type: 'line',
yAxisIndex: 1,
data: [0, 0, 48.77963311391416, 130.18958701980594, 175.96627324692494, 134.44281796596198, 222.58571494971764, 174.06152261161085, 164.01486883972103, 193.35818927451976, 157.67571263597083, 182.75175502456264, 145.67926103969833, 275.1603378679839, 148.66544570865074, 245.66090406113523, 233.27403506589815, 240.3603916119921, 229.35891377947405, 212.90054188782224, 188.41428687826422, 160.53742802496302, 122.36711751430967, 90.4800654303683, 64.31096983632222, 31.639379535020606, 16.60782524678002, 34.34555595693026, 30.23129421606646, 41.526696613111014, 35.399758346189856, 45.79335491075677, 37.079477515131124, 11.251357501811329, 11.40595386820194, 35.168153811369855, 44.75403743631716, 5.102773344412733, 7.711168055264502, 5.368124412365837, 8.658554900013115, 27.386506459691343, 79.80036075678612, 60.95279594768798, 52.618217987583286, 59.21164267435076, 87.42980979294973, 112.42514857669715, 174.52247917062624, 206.27731702796225, 215.5276607633038, 226.30868536962467, 234.29290985471735, 232.56243900467186, 230.4417815651616, 233.68543648050402, 226.84433554817537, 221.12509335268945, 214.7674176189176, 216.8827873278608, 220.11128769537314, 223.02694883930238, 228.2314374235625, 224.89065628727187, 220.71651786595334, 221.1886843330095, 223.92140213605012, 222.16670568139938, 222.4891156441916, 227.62954455812897, 221.9487479900144, 216.50165685953365, 218.76653602114115, 215.1121907702564, 216.33930042961262, 217.85302612071163, 214.66041066864952, 215.75459588370032, 219.91263501520842, 224.61274377221463, 220.491255150647, 213.60778047157234, 218.72955632757342, 218.56394981044292, 221.58659787361987, 224.75431788730796, 228.42665946667313, 233.36829462993026, 233.24316287140746, 230.2872716730126, 232.18848709664113, 239.85832284105436, 238.71737419539488, 237.10612219091715, 231.23228215931172, 232.76915967351854, 224.47659637475428, 223.13901290521463, 221.08541100624035, 224.9642523086637, 223.00422805818033, 225.31723201292115, 231.15168848014696, 222.23433653513672, 219.77936720128008, 225.9098884738644, 229.35755653486342, 224.53499093563656, 227.4653510730587, 229.54808956196123, 240.05669780870247, 235.06227304220545, 232.57688284227794, 219.13258054089832, 216.86890921198486, 242.07791398642794, 0, 0, 0
] }, {
name: 'speed3(m/min)',
type: 'line',
yAxisIndex: 1,
data: [0, 0, 0, 0, 0, 0, 201.40785757936666, 271.2043703093059, 286.830234396397, 0, 0, 0, 119.83279077957914, 0, 0, 251.42914356881445, 253.67342913949346, 276.239665231, 318.50711298407856, 257.774616932115, 274.5240916812393, 194.9375893791118, 210.65148488751973, 162.61102923660226, 89.72655980448904, 14.855608061885084, 1.6849580853019577, 70.53933214400196, 0.2754487111782521, 0.30445632077587864, 0.24525602450480696, 201.82646083040865, 0.35978808091092435, 15.639348834988729, 0.3806025568299334, 0.39849850824948946, 0.2524939438960375, 0.28798215409434746, 0.277533939233459, 0.18175637661838814, 0.24907468895014387, 0.42017401626111306, 0.29425636000830857, 0.2786490619170879, 0.32412493406886816, 0.29625887560526004, 82.29801779765603, 55.81852777040956, 186.57475435690404, 252.76648638355232, 293.4098883495061, 277.70597909451413, 269.9258547727512, 237.59643641340625, 266.0006383086134, 267.22708354936964, 246.85630720604127, 237.00620061996543, 235.69881016731873, 223.57117540584966, 228.10487224727936, 240.76707926801188, 257.1862358591225, 236.07486108082577, 242.07999935322786, 260.8138162066996, 247.81499868367317, 256.94352863608674, 267.8952954262193, 270.5629020518525, 258.133622537582, 241.70256022975673, 265.0372162090217, 255.1683649393061, 265.0413159132544, 278.7910896947844, 250.42194819887976, 264.0448527153314, 253.89741701898424, 255.30715525886112, 244.3103701956003, 256.2229331008282, 242.91602509801191, 248.72216043819066, 242.2041233957945, 260.47883267483905, 250.67891102712844, 281.97194211621616, 266.3523657294042, 282.7121971725814, 264.9131621875606, 265.6819503184567, 253.68880401672916, 256.0753448916283, 251.90494095018235, 246.03757512465225, 237.8762000025411, 228.87756703778112, 222.2364178812111, 242.45130773572043, 240.999068321104, 247.6739636587979, 257.1846806848966, 265.44936318490636, 271.0180248262951, 277.1064045665932, 274.7923853068224, 261.34101595238394, 284.8293155686063, 283.1052407611641, 284.87839356852504, 263.4905551942668, 262.8089348808968, 260.48867640531097, 269.7036996567327, 150.80992925558851, 0, 0, 0
] }]
};