Echarts 折线图,饼图,柱形图顶部显示数值
文章目录
1、折线图
itemStyle: {
normal: {
color: "#3C76F4", //改变折线点的颜色
label : {show: true}, //顶部显示数值
lineStyle: {
color: "#3C76F4" //改变折线颜色
}
}
}
2、饼图
label: {
show: true, //饼图上的数据是否展示true展示false不展示
position: "inner", //饼图上的数据展示位置inner是展示在内部
formatter: "{c}" //饼图上展示的数据格式
},
3、柱形图
label: {
normal: {
show: true,
position: 'top',
textStyle: {
color: '#000',
fontSize: 12
}
}
},
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论