echarts饼图legend样式放在左侧
时间: 2023-08-20 22:07:52 浏览: 147
echarts制作的饼状图
4星 · 用户满意度95%
在Echarts文档中,要将饼图的legend样式放在左侧,可以通过设置legend的orient属性为'vertical',并将其left属性设置为'left'来实现。具体的代码如下所示:
```javascript
option = {
legend: {
orient: 'vertical',
left: 'left',
},
// 其他配置项...
};
```
这样设置后,饼图的legend样式就会被放置在左侧位置了。\[1\]
#### 引用[.reference_title]
- *1* [echarts饼状图设置位置](https://blog.csdn.net/qweasdzxc_1092665276/article/details/85000602)[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^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [echarts 饼图](https://blog.csdn.net/weixin_43931625/article/details/121068654)[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^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文