echarts去除折线图圆点
时间: 2023-08-17 15:11:55 浏览: 284
要去除echarts折线图的圆点,可以使用symbol属性并将其设置为'none'。例如,可以在option中的series中添加symbol: 'none'来取消折点圆圈。以下是一个示例代码:
option = {
xAxis: {
type: 'category',
data: \['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'\]
},
yAxis: {
type: 'value'
},
series: \[{
data: \[820, 932, 901, 934, 1290, 1330, 1320\],
type: 'line',
symbol: 'none', // 取消折点圆圈
smooth: true // 折线平滑
}\]
};
通过将symbol属性设置为'none',即可去除折线图的圆点。这样,你就可以得到一个没有圆点的折线图。\[1\]\[2\]
#### 引用[.reference_title]
- *1* [echarts图表之去掉折线图的折点圆圈,折线平滑](https://blog.csdn.net/qq_20757489/article/details/90666047)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v4^insert_chatgpt"}} ] [.reference_item]
- *2* [echarts图表之去掉折线图的折点圆圈,实测有效](https://blog.csdn.net/k912120/article/details/84478191)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v4^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文