var pieChart = echarts.init(document.getElementById('pie'));
option = {
title: {
text: '堆叠区域图',
show: false,
},
tooltip : {
trigger: 'axis'
},
legend: {
data: ['1.0','2.0','3.0'],
right:'10%',
textStyle:{
color:'red',
}
},
grid: {
left: '20%',
right: '10%',
bottom: '10%',
containLabel: true
},
xAxis : [
{
type : 'category',
show : false,
data : ['周一','周二','周三','周四','周五','周六','周日']
}
],
yAxis : [
{
type : 'value',
show : false
}
],
series : [
{
name:'1.0',
type:'line',
stack: '总量',
symbol:'circle',
areaStyle: {normal: {}},
data:[100, 200, 101, 134, 90, 230, 210]
},
{
name:'2.0',
type:'line',
stack: '总量',
symbol:'circle',
areaStyle: {normal: {}},
data:[200, 300, 191, 234, 290, 330, 310]
},
{
name:'3.0',
type:'line',
stack: '总量',
symbol:'circle',
areaStyle: {normal: {}},
data:[700, 500, 301, 334, 390, 330, 320]
},
]
};
pieChart.setOption(option);