配置项如下
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: [ 'speed3','speed','speed9127']
},
xAxis: [{
type: 'category',
data: [
'2015-08-12 17:35:03',
'2015-08-12 17:50:03',
'2015-08-12 18:05:03',
'2015-08-12 18:20:03',
'2015-08-12 18:35:03',
'2015-08-12 18:50:03',
'2015-08-12 19:05:03',
'2015-08-12 19:20:03',
'2015-08-12 19:35:03',
'2015-08-12 19:50:03',
'2015-08-12 20:05:03',
'2015-08-12 20:20:03',
'2015-08-12 20:35:03',
'2015-08-12 20:50:03',
'2015-08-12 21:05:03',
'2015-08-12 21:20:03',
'2015-08-12 21:35:03',
'2015-08-12 21:50:03',
'2015-08-12 22:05:03',
'2015-08-12 22:20:03',
'2015-08-12 22:35:03',
'2015-08-12 22:50:03',
'2015-08-12 23:05:03',
'2015-08-12 23:20:03',
'2015-08-12 23:35:03',
'2015-08-12 23:50:03',
'2015-08-13 00:05:03',
'2015-08-13 00:20:03',
'2015-08-13 00:35:03',
'2015-08-13 00:50:03',
'2015-08-13 01:05:03',
'2015-08-13 01:20:03',
'2015-08-13 01:35:03',
'2015-08-13 01:50:03',
'2015-08-13 02:05:03',
'2015-08-13 02:20:03',
'2015-08-13 02:35:03',
'2015-08-13 02:50:03',
'2015-08-13 03:05:03',
'2015-08-13 03:20:03',
'2015-08-13 03:35:03',
'2015-08-13 03:50:03',
'2015-08-13 04:05:03',
'2015-08-13 04:20:03',
'2015-08-13 04:35:03',
'2015-08-13 04:50:03',
'2015-08-13 05:05:03',
'2015-08-13 05:20:03',
'2015-08-13 05:35:03',
'2015-08-13 05:50:03',
'2015-08-13 06:05:03',
'2015-08-13 06:20:03',
'2015-08-13 06:35:03',
'2015-08-13 06:50:03',
'2015-08-13 07:05:03',
'2015-08-13 07:20:03',
'2015-08-13 07:35:03',
'2015-08-13 07:50:03',
'2015-08-13 08:05:03',
'2015-08-13 08:20:03',
'2015-08-13 08:35:03',
'2015-08-13 08:50:03',
'2015-08-13 09:05:03',
'2015-08-13 09:20:03',
'2015-08-13 09:35:03',
'2015-08-13 09:50:03',
'2015-08-13 10:05:03',
'2015-08-13 10:20:03',
'2015-08-13 10:35:03',
'2015-08-13 10:50:03',
'2015-08-13 11:05:03',
'2015-08-13 11:20:03',
'2015-08-13 11:35:03',
'2015-08-13 11:50:03',
'2015-08-13 12:05:03',
'2015-08-13 12:20:03',
'2015-08-13 12:35:03',
'2015-08-13 12:50:03',
'2015-08-13 13:05:03',
'2015-08-13 13:20:03',
'2015-08-13 13:35:03',
'2015-08-13 13:50:03',
'2015-08-13 14:05:03',
'2015-08-13 14:20:03',
'2015-08-13 14:35:03',
'2015-08-13 14:50:03',
'2015-08-13 15:05:03',
'2015-08-13 15:20:03',
'2015-08-13 15:35:03',
'2015-08-13 15:50:03',
'2015-08-13 16:05:03',
'2015-08-13 16:20:03',
'2015-08-13 16:35:03',
'2015-08-13 16:50:03',
'2015-08-13 17:05:03',
'2015-08-13 17:20:03',
'2015-08-13 17:35:03',
'2015-08-13 17:50:03',
'2015-08-13 18:05:03',
'2015-08-13 18:20:03',
'2015-08-13 18:35:03',
'2015-08-13 18:50:03',
'2015-08-13 19:05:03',
'2015-08-13 19:20:03',
'2015-08-13 19:35:03',
'2015-08-13 19:50:03',
'2015-08-13 20:05:03',
'2015-08-13 20:20:03',
'2015-08-13 20:35:03',
'2015-08-13 20:50:03',
'2015-08-13 21:05:03',
'2015-08-13 21:20:03',
'2015-08-13 21:35:03',
'2015-08-13 21:50:03',
'2015-08-13 22:05:03',
'2015-08-13 22:20:03',
'2015-08-13 22:35:03',
'2015-08-13 22:50:03',
'2015-08-13 23:05:03',
]
}],
yAxis: [
{
type: 'value',
name: 'speed(m/min)',
min: 0,
max: 1000,
axisLabel: {
formatter: '{value}m/min '
}
}],
series: [
{
name: 'speed',
type: 'line',
//yAxisIndex: 1,
data: [250.2197918351308, 231.87104538702454, 257.8757200191161, 342.2675082312855, 324.194195966831, 114.49390924003114, 98.33083631777076, 235.4995338546914, 245.9563691504356, 220.74963147021998, 146.43759545833743, 184.69193507873567, 296.32969841158274, 279.36356328642586, 277.24533183735815, 228.70309933183498, 231.37160422579535, 227.49668667547934, 232.67005182779533, 206.94437983881033, 200.9308120797289, 175.6246181960441, 166.05729178614052, 150.7522134457272, 155.8638908054895, 102.54663137296761, 32.68541210268073, 33.156620801905596, 39.47727798977061, 13.991217173843285, 6.869457788005775, 28.765909156074738, 38.04118261018438, 39.78850100224868, 41.57653620599877, 43.95678918728557, 33.53611187641656, 48.65060897804266, 56.122097209138, 53.66093414403817, 78.88734441010615, 56.99032331152142, 46.77488918334805, 37.73210251395112, 34.207362732436096, 33.052260087189204, 73.3756132516017, 121.68626791812791, 185.26755375943577, 222.1115549476503, 240.46539834616186, 244.69534333148215, 248.2749600161052, 252.83959864150088, 251.22400138724015, 246.97954112343228, 243.2266454903808, 237.01557067257164, 227.66639609727002, 227.5969701048604, 225.29864263854458, 226.0225444489045, 228.27253376571448, 226.9668573411205, 225.80513776070688, 225.18982716548362, 221.16518057113348, 220.1340595353125, 230.92858051400137, 229.23540049896707, 226.19261242602724, 228.42294420150856, 236.59246703398296, 234.28636995981142, 231.7198937692493, 235.4328197073481, 227.03034432840383, 231.70622750828065, 238.28003414471326, 226.57475289297895, 228.90484357170337, 229.53559501517987, 230.4542166824584, 234.42725704116987, 241.9699663582831, 240.4183761723412, 237.9888574544073, 235.8059992996244, 241.1226424228789, 240.3822614268564, 239.90630249742767, 236.511159365258, 237.12162459122817, 241.50170109757516, 234.82051784906258, 237.5251723815091, 226.76477289189137, 228.61306456843735, 220.36004757016715, 223.12298364053427, 221.5954716897775, 224.2013606237866, 229.81212297504533, 227.08613735479577, 235.51000542294176, 229.73565527456148, 223.33166227835537, 236.04676781709975, 236.32836960399564, 238.02238175260032, 238.914292237957, 239.38504091172956, 249.4248087975167, 250.2346167734031, 235.4599652581296, 223.00037531541193, 202.58530247067145, 185.69282113566726, 155.17762569151606
] },
{
name: 'speed9127',
type: 'line',
//yAxisIndex: 1,
data: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.0, 0.0, 131.33045060793225, 499.16337029400546, 656.3960559615552, 189.26117889970345, 257.9305381742316, 339.1233434898419, 413.54968004571873, 364.220761615129, 221.57585858136784, 0.0, 0, 169.28613062332994, 255.7084447598252, 241.7700301469208, 283.73180556294466, 331.9474952984976, 292.0237274495957, 317.7425399541415, 365.753063199659, 324.97089152807956, 425.82028767370696, 334.2923729118648, 18.28791008185872, 5.364266888006717, 0.0, 258.2311319950914, 381.7288915407578, 370.3496140217525, 450.39829130255595, 217.6930558587545, 270.5616909727968, 378.22887197477485, 331.20414660967276, 376.2852716927324, 148.93466458001154, 0.0, 0, 0, 53.69499894875418, 281.9677226372429, 294.84328762794985, 307.5104714942537, 288.47165752002087, 208.09386759340492, 304.99159430609956, 286.7089783426705, 289.7180658807129, 312.83389675345023, 380.35574182182353, 279.2491057983495, 0.0, 0.0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
] },{
name: 'speed3(m/min)',
type: 'line',
// yAxisIndex: 1,
data: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 269.61485503278806, 230.20414444893984, 218.57954803297525, 273.04311237029583, 218.99187230692092, 256.67076400522035, 119.42756327283361, 48.87681597130975, 0.5310111525772979, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14.524102528769138, 0.47309968403252506, 58.616283230241976, 117.77671989840933, 207.7212064121849, 241.90726041353287, 254.97635593829568, 247.96456866302987, 287.44273278189763, 317.07880770429983, 291.8512847120961, 278.04618239249396, 287.92577275303836, 277.17101701930727, 272.4971961525229, 278.45153943694777, 256.93695299747185, 268.77446501883156, 266.7363368152824, 272.0323284168025, 258.54299910892723, 276.16575824469936, 256.55088354340654, 278.807025274297, 277.92015769953053, 265.02423838822267, 271.737851950435, 285.53768513606866, 253.05184348349238, 295.8363072114694, 303.71477072504416, 283.7641593501949, 277.7399190986034, 300.8638983177891, 271.7886104398525, 291.48433190582745, 290.8256854275315, 285.66234058093096, 285.44766231351326, 291.8340715529191, 276.54079075269516, 279.26555261532343, 255.46452304909198, 266.040578367205, 258.8791888258484, 285.6818470394979, 267.42524840485714, 276.1996144134095, 277.7749966613378, 263.04585680949003, 272.62415473426904, 270.22932063609375, 269.4376967489599, 258.9147472275603, 255.851343062671, 274.1033953021972, 263.57724374324675, 266.5058433574911, 276.87488986398273, 263.56916112214645, 266.6826454411572, 267.1940940133925, 260.0327346048049, 267.9606928910833, 298.19043683317324, 312.87026142945626, 311.3687304186393, 318.9624915020888, 273.4593344435016, 231.16568105718136, 265.07325930589946, 184.86185698270077, 97.03288667247081, 113.46100550539687
] }]
};