2 回答
TA贡献1789条经验 获得超8个赞
看官方的文档介绍撸的
var option = {
title:{
text:'2017年 下半年'
},
tooltip:{
trigger: 'axis',
axisPointer: {//鼠标经过显示
type: 'shadow'
}
},
grid: {//图表间距
left: '2%',
right: '10%',
bottom: '2%',
containLabel: true
},
xAxis:{
axisTick: {//去掉刻度
show: false
},
data:["7月","8月","9月","10月","11月","12月"]
},
yAxis:{
axisLabel:{
formatter: '{value} 万'
},
splitLine:{//去掉网格线
show:false
},
axisTick: {//去掉刻度
show: false
}
},
series:[{
name:'账单',
type:'line',
symbol:'circle',//拐点样式
symbolSize: 12,//拐点大小
itemStyle:{
color:"#cc9966"
},
data: [22,25,20,18,29,25]
}]
};
添加回答
举报
