DilipSingh06 opened a new issue, #20033: URL: https://github.com/apache/echarts/issues/20033
### Version 5.5.0 ### Link to Minimal Reproduction https://jsfiddle.net/j4zaouqg/1/ ### Steps to Reproduce <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"> <head> <meta name=ProgId content=Excel.Sheet> <meta name=Generator content="Microsoft Excel 15"> <link id=Main-File rel=Main-File href="file:///C:/Users/DILIP~1.SIN/AppData/Local/Temp/msohtmlclip1/01/clip.htm"> <link rel=File-List href="file:///C:/Users/DILIP~1.SIN/AppData/Local/Temp/msohtmlclip1/01/clip_filelist.xml"> <!--table {mso-displayed-decimal-separator:"\."; mso-displayed-thousand-separator:"\,";} @page {margin:.75in .7in .75in .7in; mso-header-margin:.3in; mso-footer-margin:.3in;} tr {mso-height-source:auto;} col {mso-width-source:auto;} br {mso-data-placement:same-cell;} td {padding-top:1px; padding-right:1px; padding-left:1px; mso-ignore:padding; color:black; font-size:9.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:Geneva; mso-generic-font-family:auto; mso-font-charset:0; mso-number-format:General; text-align:general; vertical-align:bottom; border:none; mso-background-source:auto; mso-pattern:auto; mso-protection:locked visible; white-space:nowrap; mso-rotate:0;} .xl65 {text-align:center; vertical-align:middle; white-space:normal;} .xl66 {mso-number-format:"\0022$\0022\#\,\#\#0\.00";} --> </head> <body link="#0563C1" vlink="#954F72"> Brand | Dollars-CY-NR -- | -- MARS HALLOWEEN FUN SIZE DSP 128/19.55 OZ | $17,575,019.62 SNICKERS STD 48/1.86 OZ | $11,808,228.56 M&MS PEANUT SHARE SIZE 24/3.27 OZ | $7,742,048.94 KIT KAT KS 24/3 OZ | $7,570,503.55 REESES CUP KS 24/2.8 OZ | $7,535,862.50 FASTBREAK KS 18/3.5 OZ | $6,508,903.08 REESES BIG CUP KS 16/2.8 OZ | $6,461,155.17 SNICKERS 2 TO GO 24/3.29 OZ | $6,114,186.00 REESES CUP STD 36/1.5 OZ | $5,810,792.40 OTHERS | $189,262,395.95 </body> </html> 1) Plot a pie chart with the above data in Echarts and also in Excel directly. 2) If you notice the "SNICKERS 2 TO GO 24/3.29 OZ" data label in Excel shows as 2.30% whereas in the Echarts it shows as 2.29%. ### Current Behavior There is a difference in percentage decimal values when we try to plot pie chart in excel vs in echarts with the same data. This difference increases when the data is more and the number of slices gets restricted to less numbers. As per our investigation we saw that excel is rounding the number to the given precision but echarts is trimming it to the given precison. Please find the screenshots for the same. Plotted Pie chart with same data in Echarts website using Echarts Existing Samples and modifying the data.  Plotted Pie chart with same data in Our Project using Echarts library.  Plotted Pie chart with same data in Excel.  ### Expected Behavior There should not be any difference in the percentage decimal values when the data is same. ### Environment ```markdown - OS: - Browser: - Framework: ``` ### Any additional comments? _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
