就是我图片圈起来的地方
这是我的代码 新手求大神指教
option = {
tooltip : {
trigger: 'axis',
},
toolbox: {
show : true,
feature : {
mark : {show: true},
dataView : {show: true, readOnly: false},
magicType : {show: true, type: ['line', 'bar', 'stack', 'tiled']},
restore : {show: true},
saveAsImage : {show: true}
}
},
calculable : true,
xAxis : [
{
type : 'category',
boundaryGap : false,
data : ['2012','2013','2014','2015','2016','2017','2018']
}
],
grid: {
'backgroundColor':'rgba(10,220,110,.5)',
height:'200'
},
yAxis : [
{
type : 'value'
}
],
axisLabel:{
textStyle:{
color:"#333333"//x轴,y轴的数字颜色,如图1
}
},
axisTick:
{
show: false,
},
series : [
{
name:'推广流量',
type:'line',
stack: '总量',
symbol:'circle',
symbolSize:"10",
itemStyle: {normal: {areaStyle: {type: 'default'}}},
color: {
type: 'linear',
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [{
offset: 1, color: '#fefeff' // 0% 处的颜色
}, {
offset: 0.4, color: '#e8efff' // 100% 处的颜色
}],
globalCoord: false // 缺省为 false
},
itemStyle: {
normal: {
areaStyle: {
// 区域图,纵向渐变填充
},
lineStyle:{
color:'#f68698'
}
}
},
data:[50, 110, 80, 200, 240, 70, 350]
},
]
};
axisLabel: { //处理单位相关
formatter: '{value}单位'
},
axisLine: { //处理坐标轴颜色
axisLabel: { //处理坐标轴字体