通常设置symbol:"none"来去除圆点,但这种写法会导致折线图的值不能正常显示了,可以通过symbolSize:0来关闭点保留值,下方代码可直接运行在https://echarts.apache.org/examples/zh/editor.html?c=line-simple
option = {
xAxis: {
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
},
yAxis: {
type: 'value'
},
series: [
{
data: [150, 230, 224, 218, 135, 147, 260],
type: 'line',
symbol:"circle",
symbolSize:0,
label: {
show: true,
position: 'top'
}
}
]
};
3284

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



