配置项如下
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-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: 'speed3(m/min)',
min: 0,
max: 1000,
axisLabel: {
formatter: '{value}m/min '
}
}],
series: [
{
name: 'group3',
type: 'bar',
yAxisIndex: 1,
data: [0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 2, 1, 1, 131, 231, 208, 184, 158, 127, 113, 81, 59, 39, 22, 12, 6, 6, 6, 7, 7, 7, 6, 5, 5, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 9, 22, 45, 72, 107, 167, 232, 290, 338, 389, 440, 474, 498, 503, 505, 500, 510, 490, 500, 480, 478, 448, 437, 404, 397, 379, 360, 342, 325, 297, 286, 280, 267, 272, 272, 270, 268, 272, 289, 305, 314, 332, 340, 359, 375, 384, 404, 421, 429, 445, 462, 469, 462, 475, 477, 474, 469, 461, 436, 406, 377, 347, 326, 297, 284, 266, 240, 203, 177, 146, 114, 99, 62, 0
] },
{
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',
type: 'line',
yAxisIndex: 1,
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: 'speed3(m/min)',
type: 'line',
yAxisIndex: 1,
data: [0, 0, 0, 0, 0.8905559270349879, 0, 188.35099962999215, 213.84887244582848, 276.5349394738517, 239.0114503252126, 362.96935815264237, 135.19575377950298, 23.824663363381344, 365.4784284129088, 241.32566550843507, 234.60907557797412, 237.78484398449052, 226.2855908115645, 211.2532040523542, 192.84726135972343, 183.4291185780345, 140.0595760895627, 116.59083115755004, 77.4992478852328, 47.769736737124845, 30.482647303709683, 72.18856903858403, 52.59536660574967, 61.60283875915821, 130.11585923607004, 72.81567785629358, 124.74101002017194, 147.53928291352716, 137.75486730894332, 15.982134017402885, 3.854921254919873, 4.032431625693936, 2.886052956729189, 2.6579007401013643, 3.7076169207414638, 3.2614216692987523, 3.7461522608888775, 3.610352556112167, 2.689635967101284, 2.860648031854634, 4.628864945390057, 32.51495261461153, 111.8525183064011, 221.15456972101546, 262.82349665121126, 257.9051113133719, 258.75221639201516, 259.3929166940112, 259.2875820959237, 250.39548409329012, 248.82067707974107, 242.05534956927974, 231.98650467160869, 227.36469291448907, 224.49949507146832, 225.44991191943424, 229.4094936110441, 237.43218565196884, 229.07584429705747, 237.82234570273482, 229.3798381095763, 236.18506368772387, 238.3920752601913, 231.06189889491895, 227.72681055812427, 231.50627858448038, 234.842547703817, 230.8819746278609, 230.1051215743174, 240.74201291430984, 235.80896993128388, 234.3711284276352, 226.82091971494313, 232.15307089045749, 230.48398109957301, 234.5513130786194, 232.02966081178874, 235.76446294127405, 233.68008178610592, 242.95374820323056, 252.8034985031332, 245.19769405214174, 248.01949559675865, 248.2450322437194, 246.2597133450929, 241.7734996138737, 243.19015588798976, 244.78710384848338, 247.20677089179253, 235.45307154944342, 232.99918839314674, 210.17303615733508, 209.29219997025697, 208.04506701927218, 207.1680067266411, 208.61476546556543, 214.9620899183863, 235.60297952721373, 230.95216694433114, 229.7107758239099, 233.26887737319606, 227.53116546197862, 235.89971030257917, 239.09132277025768, 253.82100079928503, 242.7249866105712, 249.92456396546532, 245.30092572993817, 240.16954306952326, 232.23329427668327, 210.9267861809763, 173.73801108213235, 171.77069050326395, 0
] }]
};