Highcharts饼图的配置项包括以下内容:
1. `legend`:图例的设置,可以控制图例的显示、布局、背景颜色等。
2. `plotOptions`:绘图选项,可以设置饼图的大小、内圈直径等。
3. `tooltip`:提示框的设置,可以定义提示框的格式。
4. `chart`:图表的设置,包括类型、背景颜色、边距等。
5. `title`:标题的设置。
6. `series`:数据列的设置,可以定义饼图的数据以及数据标签的样式。
这些配置项可以通过Javascript对象的方式进行设置,例如:
```
let option = {
chart: {
type: "pie",
backgroundColor: "rgba(0, 0, 0, 0)",
marginTop:10,
options3d: {
enabled: true,
alpha: 50,
beta: 0,
},
},
title: {
text: "",
},
plotOptions: {
pie: {
borderColor: "#000",
borderWidth: 1,
allowPointSelect: true,
cursor: "pointer",
depth: 24,
dataLabels: {
enabled: true,
format: "{point.name}",
style: {
textOutline: "none",
color: "rgba(45,153,255,1)",
fontSize: 11,
},
},
},
},
series: [
{
type: "pie",
data: [
["邮政包裹", 30],
["圆通快递", 20],
["京东快递", 30],
["申通快递", 50],
["德邦物流", 20],
["天天快递", 20],
["其他", 30],
["顺丰快递", 10],
["中通快递", 30],
["韵达快递", 20],
],
},
],
};
Highcharts.chart("DispatchProportion", option);
```
以上就是绘制Highcharts饼图所需的配置项。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [Highcharts 3D饼图(1)上手使用配置](https://blog.csdn.net/kkk_xxx/article/details/109380972)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [highcharts 饼图常用设置项](https://blog.csdn.net/qq_26769677/article/details/80229195)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]