echarts饼状图外圈透明
时间: 2023-08-23 18:18:15 浏览: 78
要实现echarts饼状图外圈透明,可以通过设置itemStyle的borderColor属性为透明色。具体代码如下所示:
itemStyle: {
normal: {
borderRadius: 2,
borderColor: 'rgba(255, 255, 255, 0)', // 设置为透明色
borderWidth: 1,
color: function(params) {
return colorList\[params.dataIndex\]
}
}
}
你可以在这个demo地址中查看效果:\[1\]。
#### 引用[.reference_title]
- *1* [echarts饼图的白边](https://blog.csdn.net/weixin_43794749/article/details/121428261)[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^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [echarts饼图、折线图属性设置大全(全注释建议收藏)](https://blog.csdn.net/qq_52151772/article/details/120201439)[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^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文