![](https://img.codepudding.com/202011/170175260303561.png)
Pie chart how to display the percentage and corresponding name and pie chart color one-to-one correspondence with the color?
Local test code is as follows:
![](https://img.codepudding.com/202011/170175260303562.png)
Make for a long time didn't study,
![](https://img.codepudding.com/202011/170175260303563.gif)
CodePudding user response:
Used spire. XLS for Java to generate a pie chart, the free version can use it to try the effect, the code reference https://www.e-iceblue.cn/spirexls_java_chart/create-excel-pie-charts-in-java.html tutorial