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

   <!-- Please fill in the following information to help us review your PR more 
efficiently. -->
   
   ## Brief Information
   
   This pull request is in the type of:
   
   - [ ] bug fixing
   - [x] new feature
   - [ ] others
   
   
   
   ### What does this PR do?
   
   <!-- USE ONE SENTENCE TO DESCRIBE WHAT THIS PR DOES. -->
   This PR adds and registers axisAreaClear action so that user can clear the 
axis range selection by calling the dispatchAction().
   
   
   ### Fixed issues
   [[Feature] Clear axis range selection by action in parallel coordinates plot 
#18446](https://github.com/apache/echarts/issues/18446)
   
   <!--
   - #xxxx: ...
   -->
   
   
   ## Details
   
   ### Before: What was the problem?
   
   <!-- DESCRIBE THE BUG OR REQUIREMENT HERE. -->
   There is no action available to clear the axis range selection in parallel 
coordinates plot. The only option is to click on an axis, but it would be 
helpful to clear the axis range selection by dispatching an action.
   
   <!-- ADD SCREENSHOT HERE IF APPLICABLE. -->
   
   
   
   ### After: How does it behave after the fixing?
   
   <!-- THE RESULT AFTER FIXING AND A SIMPLE EXPLANATION ABOUT HOW IT IS FIXED. 
-->
   Now, dispatchAction( { type: 'axisAreaClear'} ) will clear the axis 
selection range on all axes.
   Additionally, dispatchAction( { type: 'axisAreaClear',  axes: ['x', 'y'] } ) 
will clear the axis selection range on the axes named 'x' and 'y' (the name as 
defined in the option.parallelAxis[i].name property).
   
   <!-- ADD SCREENSHOT HERE IF APPLICABLE. -->
   No problems have been found with dispatchAction( { type: 'axisAreaClear'} ) 
so far, but a bug was found when testing { type: 'axisAreaClear', axes: ['x', 
'y'] }. 
   For example, in the image below, if I only want to clear the selection range 
on the first axis by dispatchAction(), the selection range on the second axis 
is still there but the transparency is gone.
   
![demo](https://github.com/apache/echarts/assets/128704455/cd05e7ed-8c32-4dca-a849-deb5a32eaf21)
   Would appreciate it if anyone can tell me how to fix it.
   
   
   ## Document Info
   
   One of the following should be checked.
   
   - [ ] This PR doesn't relate to document changes
   - [x] The document should be updated later
   - [ ] The document changes have been made in apache/echarts-doc#xxx
   
   
   
   ## Misc
   
   ### ZRender Changes
   
   - [ ] This PR depends on ZRender changes (ecomfe/zrender#xxx).
   
   ### Related test cases or examples to use the new APIs
   
   N.A.
   
   
   
   ## Others
   
   ### Merging options
   
   - [ ] Please squash the commits into a single one when merging.
   
   ### Other information
   


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