yAxis : [
{
name:'y轴单位',//y轴显示的单位
min: 0,
'splitNumber':10 ,//y轴最分为10分
splitLine:{//设置刻度线线条颜色
lineStyle:{
color: ['#f1f1f1']
},
},
axisTick:{
show:false
},
type : 'value',
axisLabel:{
interval: 0
}
}
],
series : [
{
name:$scope.totalData111[i].params_1.name,
type:'bar',//line
itemStyle:{
normal:{
color: "#26aee3" //图标颜色
}
},
lineStyle:{
normal:{
width:2, //连线粗细
color: "#26aee3" //连线颜色
}
},
symbol:'none', //这句就是去掉点的
smooth:true, //这句就是让曲线变平滑的
barWidth: '35px',//设置柱状图宽度
data:$scope.totalData111[i].params_1.data,
itemStyle: {
normal: {
color:'#57cded',
label: {
show: true,
position: 'top',//设置柱状图柱的文字位置
formatter:'{b}\n{c}'//设置柱状图柱的文字内容。{b}为name,{c}为数据
},
}
}
}
]
echarts图表
最新推荐文章于 2024-03-13 08:34:08 发布