echarts柱状图达标线达成线
// An highlighted block
series:[
{
markLine: {
symbol: ["none", "none"],
itemStyle: {
normal: {
lineStyle: {
type: "solid",
color: "#e36b05",
},
label: {
show: true,
position: "middle",
formatter: "达标线",
distance: 5,
textStyle: {
color: "#fff",
fontSize: 12,
},
},
},
},
data: [
{
yAxis: "60",// 值
},
],
},
}
]
效果

该代码段展示了如何在Echarts的柱状图中添加达标线,使用markLine属性,定义了线的样式、颜色以及标签内容,数据点设置为y轴值60,显示为达标线。

2971

被折叠的 条评论
为什么被折叠?



