标签:es2017 label 技术分享 margin 营销 type logs chart isl
title: {
text: ‘折线图堆叠‘//标题
},
legend: {
data:[‘邮件营销‘,‘联盟广告‘,‘视频广告‘,‘直接访问‘,‘搜索引擎‘]
},
xAxis: {
data: [‘周一‘,‘周二‘,‘周三‘,‘周四‘,‘周五‘,‘周六‘,‘周日‘] //y轴数据
},
"yAxis":[
{"type":"value","name":"访问次数","axisLabel":{"formatter":"{value} "}},
{"type":"value","name":"下单转化率","axisLabel":{"formatter":"{value} %"}
}]
series: [
{
name:‘邮件营销‘,
type:‘line‘,//图形类型
stack: ‘总量‘,
data:[120, 132, 101, 134, 90, 230, 210]//对应数据
},
{
name:‘联盟广告‘,
type:‘line‘,
stack: ‘总量‘,
data:[220, 182, 191, 234, 290, 330, 310]
},
{
name:‘视频广告‘,
type:‘line‘,
stack: ‘总量‘,
data:[150, 232, 201, 154, 190, 330, 410]
}
]
标签:es2017 label 技术分享 margin 营销 type logs chart isl
原文地址:http://www.cnblogs.com/chenzxl/p/7877788.html