linzch3 opened a new pull request, #21869:
URL: https://github.com/apache/echarts/pull/21869

   ## Brief Information
   
   - [ ] bug fixing
   - [ ] new feature
   - [x] others: documentation only
   
   ### What does this PR do?
   Correct the documented percentage total from 1 to 100 in 
`getPercentWithPrecision` and `getPercentSeats`.
   
   ### Fixed issues
   None. Found while checking the helper documentation against its 
implementation.
   
   ## Details
   
   ### Before: What was the problem?
   Both comments say the percentages sum to 1, but the implementation allocates 
`10^precision * 100` seats and returns values on a 0–100 scale.
   
   ### After: How does it behave after the fixing?
   The comments say 100 and qualify this with a nonzero total, since zero-total 
input returns no seats. Runtime behavior is unchanged.
   
   ## Document Info
   - [x] Documentation changes are included in this PR (source comments only).
   
   ## Misc
   ### Security Checking
   - [ ] This PR uses security-sensitive Web APIs.
   
   ### ZRender Changes
   - [ ] This PR depends on ZRender changes.
   
   ### Related test cases or examples to use the new APIs
   `npm test -- --runInBand`: 26 suites, 194 tests passed.
   
   ### Merging options
   - [x] Please squash the commits into a single one when merging.
   
   ### Other information
   Generated-by: AI-assisted. The comments were checked against the 
implementation and existing percentage tests.
   


-- 
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]

Reply via email to