配置项如下
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-14 17:35:03',
'2015-08-14 17:50:03',
'2015-08-14 18:05:03',
'2015-08-14 18:20:03',
'2015-08-14 18:35:03',
'2015-08-14 18:50:03',
'2015-08-14 19:05:03',
'2015-08-14 19:20:03',
'2015-08-14 19:35:03',
'2015-08-14 19:50:03',
'2015-08-14 20:05:03',
'2015-08-14 20:20:03',
'2015-08-14 20:35:03',
'2015-08-14 20:50:03',
'2015-08-14 21:05:03',
'2015-08-14 21:20:03',
'2015-08-14 21:35:03',
'2015-08-14 21:50:03',
'2015-08-14 22:05:03',
'2015-08-14 22:20:03',
'2015-08-14 22:35:03',
'2015-08-14 22:50:03',
'2015-08-14 23:05:03',
'2015-08-14 23:20:03',
'2015-08-14 23:35:03',
'2015-08-14 23:50:03',
'2015-08-15 00:05:03',
'2015-08-15 00:20:03',
'2015-08-15 00:35:03',
'2015-08-15 00:50:03',
'2015-08-15 01:05:03',
'2015-08-15 01:20:03',
'2015-08-15 01:35:03',
'2015-08-15 01:50:03',
'2015-08-15 02:05:03',
'2015-08-15 02:20:03',
'2015-08-15 02:35:03',
'2015-08-15 02:50:03',
'2015-08-15 03:05:03',
'2015-08-15 03:20:03',
'2015-08-15 03:35:03',
'2015-08-15 03:50:03',
'2015-08-15 04:05:03',
'2015-08-15 04:20:03',
'2015-08-15 04:35:03',
'2015-08-15 04:50:03',
'2015-08-15 05:05:03',
'2015-08-15 05:20:03',
'2015-08-15 05:35:03',
'2015-08-15 05:50:03',
'2015-08-15 06:05:03',
'2015-08-15 06:20:03',
'2015-08-15 06:35:03',
'2015-08-15 06:50:03',
'2015-08-15 07:05:03',
'2015-08-15 07:20:03',
'2015-08-15 07:35:03',
'2015-08-15 07:50:03',
'2015-08-15 08:05:03',
'2015-08-15 08:20:03',
'2015-08-15 08:35:03',
'2015-08-15 08:50:03',
'2015-08-15 09:05:03',
'2015-08-15 09:20:03',
'2015-08-15 09:35:03',
'2015-08-15 09:50:03',
'2015-08-15 10:05:03',
'2015-08-15 10:20:03',
'2015-08-15 10:35:03',
'2015-08-15 10:50:03',
'2015-08-15 11:05:03',
'2015-08-15 11:20:03',
'2015-08-15 11:35:03',
'2015-08-15 11:50:03',
'2015-08-15 12:05:03',
'2015-08-15 12:20:03',
'2015-08-15 12:35:03',
'2015-08-15 12:50:03',
'2015-08-15 13:05:03',
'2015-08-15 13:20:03',
'2015-08-15 13:35:03',
'2015-08-15 13:50:03',
'2015-08-15 14:05:03',
'2015-08-15 14:20:03',
'2015-08-15 14:35:03',
'2015-08-15 14:50:03',
'2015-08-15 15:05:03',
'2015-08-15 15:20:03',
'2015-08-15 15:35:03',
'2015-08-15 15:50:03',
'2015-08-15 16:05:03',
'2015-08-15 16:20:03',
'2015-08-15 16:35:03',
'2015-08-15 16:50:03',
'2015-08-15 17:05:03',
'2015-08-15 17:20:03',
'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',
]
}],
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, 0, 0, 0, 0, 0, 1, 0, 0, 0, 64, 63, 66, 54, 48, 38, 27, 18, 10, 11, 7, 7, 6, 3, 3, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1, 2, 3, 4, 13, 23, 34, 41, 56, 64, 94, 85, 97, 99, 115, 111, 130, 129, 137, 147, 133, 135, 147, 142, 123, 122, 120, 124, 119, 109, 113, 107, 98, 104, 98, 116, 110, 105, 107, 106, 111, 116, 118, 114, 126, 129, 124, 135, 124, 127, 130, 120, 122, 126, 118, 113, 112, 100, 112, 111, 94, 86, 80, 82, 74, 67, 69, 69, 66, 60, 46, 34, 41, 26, 17
] },
{
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',
type: 'line',
yAxisIndex: 1,
data: [0, 0, 0, 0, 6.853018593413048, 113.3482286916916, 131.19298769967708, 0, 21.68951582372936, 9.40599300535503, 240.6666174168247, 265.5147014809483, 184.3761816041239, 213.17118768142572, 251.09298734822448, 230.42943871665432, 218.49240513866746, 205.74099768909545, 204.21317083447477, 187.59346966228708, 167.3700534638289, 142.31602092524363, 129.3631129561419, 108.23643701758611, 82.96950274279295, 65.92625765378845, 46.53045835212193, 65.71712757301616, 81.62374675852003, 108.37449174978013, 102.53447759976525, 98.2521183291435, 71.37839402884009, 77.3659514151068, 55.653568092097956, 57.15368961084546, 43.22550837032921, 60.165457852405545, 100.00393529328834, 78.66597326044544, 106.69221203014187, 121.78226695287226, 122.91253218602444, 116.00391800840596, 97.93245085942364, 43.41319797384264, 57.47203415841458, 107.594680988042, 178.25802005532609, 216.19072024383576, 229.92403353567207, 239.67875967704845, 253.71638264835377, 242.6234815989243, 245.02274174694602, 243.3092235919445, 241.33122899047186, 245.29285623703763, 244.08916415477657, 243.10636917861808, 238.4208207553671, 243.2381722704359, 239.3451164242873, 234.90598955417641, 231.33117333594518, 227.78964792112416, 230.27672487502608, 220.59423306455125, 218.593588749829, 218.6579255660947, 214.20678030710758, 210.16549460210646, 212.0802083275258, 218.64093981990334, 213.1274655145057, 216.24685536273262, 221.12472759724074, 218.60962898213918, 216.93781492369908, 221.10443376634774, 229.33906450456075, 229.50743779089476, 230.35286870344973, 232.8634796870143, 235.16190186016317, 228.63819424674847, 234.54719708486184, 237.27461471201713, 240.575216213521, 243.92006645979612, 245.18373386193534, 242.46975900847366, 239.92158689339905, 240.45215822058853, 227.07238948541098, 226.67397093213094, 222.39814926327145, 221.3179082772443, 213.1816768099167, 214.15122215978863, 222.61669642836736, 225.39532783445495, 224.9119840121667, 226.5952087028171, 224.3976262960951, 220.32907786633433, 224.09937180742995, 218.0108502209815, 225.8732674257446, 242.3009000684462, 242.27236410880795, 256.1574843234749, 249.4022357008243, 230.03750047808904, 228.3217545352071, 212.38525184796114, 195.61850504508263, 160.49488670364448, 119.36123314837727
] }, {
name: 'speed3(m/min)',
type: 'line',
yAxisIndex: 1,
data: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 403.1958610105445, 0, 0, 0, 256.67865926225414, 243.5155486352242, 266.5919127506423, 261.9205945713587, 247.88903219757887, 277.0336796589178, 248.61949738633177, 348.31119009470564, 227.74102680677797, 229.4345725987375, 194.8777900513272, 10.759404864507715, 0.46605395597386085, 78.78995985339502, 194.3698273358361, 180.33667734679364, 138.79243714148757, 0.37534524911396167, 0.3489524038585853, 0.3842157976306906, 0.37891521039379195, 0.4481685710436661, 0.23751928566000058, 0.3239214085583492, 72.60248409594656, 165.34123593986251, 88.51217421488421, 0.42193341060396716, 0.30458182943661744, 0.32409196270910773, 0.43140707200036565, 0.4773654704170369, 21.231846498422243, 217.68945492025944, 286.0124606605534, 298.7603391323771, 277.77182931115556, 259.48473073421343, 280.4138257903418, 283.0540398504945, 275.93910031698545, 272.3751928939224, 268.7938647236296, 270.0634557687252, 263.4483669644941, 261.8514321380602, 266.0889118304599, 259.10825663393365, 274.9059970207502, 257.34808092639827, 250.57879982288932, 250.76665774031125, 263.5861003816236, 250.44451702652495, 257.30864852062047, 245.78112215425833, 221.42216132436903, 236.94354678060847, 251.75635102043395, 249.44650190610085, 255.3923658690548, 256.2800391526752, 243.9836129305853, 215.09278687112973, 214.3003181034373, 248.79331460300912, 253.88314755114814, 254.3149656678009, 267.15654025911215, 261.89182023673305, 264.00926377660784, 282.4147281001295, 267.21909577769236, 270.3429420615831, 269.01656117030507, 270.88319498067915, 286.16263780922316, 251.41448063835801, 262.50221633559016, 245.5883010830502, 250.40388432782362, 251.8947044735443, 243.48993039087006, 269.38146568536894, 269.0911065535276, 264.7922724049921, 253.5631720715915, 268.5953637218873, 252.1926533736786, 273.81253914125506, 240.19457683448533, 273.59033377069505, 283.5932652221635, 276.0425013285519, 266.13539137667146, 256.95735235753284, 288.6112687503127, 285.4714973168247, 261.0573799079703, 267.44751894811554, 259.1346264278133, 194.435082174418, 186.15103272479493, 102.71653214476993
] }]
};