Skip to content

Instantly share code, notes, and snippets.

@corradio
Created September 28, 2017 07:23
Show Gist options
  • Save corradio/7092068597ab712779d533f06c7a5b0e to your computer and use it in GitHub Desktop.
Save corradio/7092068597ab712779d533f06c7a5b0e to your computer and use it in GitHub Desktop.
option = {
title: {
text: ''
},
tooltip : {
trigger: 'axis',
axisPointer: {
type: 'cross',
label: {
backgroundColor: '#6a7985'
}
}
},
legend: {
data:['AT', 'CH', 'CZ', 'DK', 'FR', 'NL', 'PL', 'SE'],
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:'NL',
type:'line',
stack: '总量',
label: {
normal: {
show: true,
position: 'top'
}
},
areaStyle: {normal: {}},
data:[0, 0, 0, 0, 0, 10, 150]
},
{
name:'AT',
type:'line',
stack: '总量',
areaStyle: {normal: {}},
data:[120, 132, 101, 134, 90, 230, 210]
},
{
name:'CH',
type:'line',
stack: '总量',
areaStyle: {normal: {}},
data:[220, 182, 191, 234, 290, 330, 310]
},
{
name:'CZ',
type:'line',
stack: '总量',
areaStyle: {normal: {}},
data:[150, 232, 201, 154, 190, 330, 410]
},
{
name:'DK',
type:'line',
stack: '总量',
areaStyle: {normal: {}},
data:[320, 332, 301, 334, 390, 330, 320]
},
{
name:'FR',
type:'line',
stack: 'negative',
label: {
normal: {
show: true,
position: 'top'
}
},
areaStyle: {normal: {}},
data:[-820, -932, -901, -934, -290, 0, 0]
},
{
name:'NL',
type:'line',
stack: 'negative',
label: {
normal: {
show: true,
position: 'top'
}
},
areaStyle: {normal: {}},
data:[-820, -932, -901, -934, -290, 0, 0]
},
{
name:'PL',
type:'line',
stack: 'negative',
label: {
normal: {
show: true,
position: 'top'
}
},
areaStyle: {normal: {}},
data:[-820, -932, -901, -934, -290, 0, 0]
},
{
name:'SE',
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