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

   ## Brief Information
   
   This pull request is in the type of:
   
   - [x] bug fixing
   - [ ] new feature
   - [ ] others
   
   ### What does this PR do?
   
   Prevents a single-value time axis from creating non-finite data shadow 
coordinates that corrupt slider bounds.
   
   ### Fixed issues
   
   - Closes #21404: Slider dataZoom becomes invalid with a single time data 
point.
   
   ## Details
   
   ### Before: What was the problem?
   
   With one timestamp, the time data extent has zero width. Slider shadow 
normalization divided by that width and generated non-finite coordinates, which 
made the slider bounding box invalid.
   
   ### After: How does it behave after the fixing?
   
   When a time extent has zero width, its shadow sample is placed at the center 
of the slider. The slider retains finite, non-zero bounds.
   
   ## Document Info
   
   - [x] This PR doesn't relate to document changes
   - [ ] The document should be updated later
   - [ ] The document changes have been made in apache/echarts-doc#xxx
   
   ## Misc
   
   ### Security Checking
   
   - [ ] This PR uses security-sensitive Web APIs.
   
   ### ZRender Changes
   
   - [ ] This PR depends on ZRender changes (ecomfe/zrender#xxx).
   
   ### Related test cases or examples to use the new APIs
   
   `test/ut/spec/component/dataZoom/slider.test.ts` verifies the slider bounds 
remain finite for a single time data point.
   
   ### Merging options
   
   - [ ] Please squash the commits into a single one when merging.
   
   ### Other information
   
   Verification passed: all 27 unit test suites (195 tests), TypeScript checks, 
ESLint, header checks, and `npm run build:lib`.
   


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