Last active
September 22, 2017 06:26
-
-
Save corradio/4d3b28ff6f87b650949aadbb9b43fb0d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
option = { | |
title: { | |
text: 'Actual Generation per Production Type' | |
}, | |
tooltip : { | |
trigger: 'axis', | |
axisPointer: { | |
type: 'cross', | |
label: { | |
backgroundColor: '#6a7985' | |
} | |
} | |
}, | |
legend: { | |
data:['coal','gas','oil','wind','hydro storage'], | |
right: '3%', | |
top: 'middle', | |
orient: 'vertical' | |
}, | |
toolbox: { | |
feature: { | |
saveAsImage: {} | |
} | |
}, | |
grid: { | |
left: '3%', | |
right: '20%', | |
bottom: '3%', | |
containLabel: true | |
}, | |
xAxis : [ | |
{ | |
type : 'category', | |
boundaryGap : false, | |
data : ['18:00','19:00','20:00','21:00','22:00','23:00','00:00'] | |
} | |
], | |
yAxis : [ | |
{ | |
type : 'value' | |
} | |
], | |
series : [ | |
{ | |
name:'coal', | |
type:'line', | |
stack: '总量', | |
areaStyle: {normal: {}}, | |
data:[120, 132, 101, 134, 90, 230, 210] | |
}, | |
{ | |
name:'gas', | |
type:'line', | |
stack: '总量', | |
areaStyle: {normal: {}}, | |
data:[220, 182, 191, 234, 290, 330, 310] | |
}, | |
{ | |
name:'oil', | |
type:'line', | |
stack: '总量', | |
areaStyle: {normal: {}}, | |
data:[150, 232, 201, 154, 190, 330, 410] | |
}, | |
{ | |
name:'wind', | |
type:'line', | |
stack: '总量', | |
areaStyle: {normal: {}}, | |
data:[320, 332, 301, 334, 390, 330, 320] | |
}, | |
{ | |
name:'hydro storage', | |
type:'line', | |
stack: 'negative', | |
label: { | |
normal: { | |
show: true, | |
position: 'top' | |
} | |
}, | |
areaStyle: {normal: {}}, | |
data:[-820, -932, -901, -934, -290, 0, 0] | |
} | |
] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment