You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/10/14 20:51:01 UTC

[GitHub] [echarts] helgasoft opened a new issue, #17771: Selection inconsistent on data change

helgasoft opened a new issue, #17771:
URL: https://github.com/apache/echarts/issues/17771

   ### Version
   
   5.4.0
   
   ### Link to Minimal Reproduction
   
   https://echarts.apache.org/examples/en/editor.html?c=scatter-simple&code=CYQwLiCMAEC80G0BQ1VtQgLAOgAwFYAaaAZmIHIBBcgXUJXTQQDY8zoB2bAJkwoGFa9Rk0iQ8xDhQAiQhiISRuE6AA5sqvtHIBROSIxdcq4swrAARgBsAxlYCWNgNb6DCfHm7Ei2gEKv0GiRQCG44RHlGLDwfdioAqI9cL2gfcn86SPRFXBUTbQAxBOyjfLNtS1sHZ2KmVlx2Ll4BORoAbiQwAHsAcyt4MAAnAFcAUw6ugAcwey6AO3CAbwYAD0oV-wBnAC5oRYBbEBXtpQBfYWgAT3Wt3YOjk9xz6CtRntG54G3F84ZN0cG9lGOwi6GWIk2l32Fi6VgAyvYAF6jXbcXDELLQEBzeyHGbzXYAMxAVn-F3QVhAFlGVjumwAFl0AO67IZjYiTLqbez4ua7ciAnr0sDkYiErqDPFgAH8xYAAQQ3Bop3IvwhNNGNmlwAAsl1gCjtPthlYZpNXqLoP9Xlq7jzRvs4WBLq87jZYRLtuRDu85hBLTDBgbBvwPYMvYNRsBVWrGCEQLt45ByWhnZNDeRNjZwNLBuRUAB6AvaBxzUb58gWEB5yKnBhBU4dfaXfj06tgbDzAAU5EqdkcLjFwzmWtmcy7KxWAEo9gwpmBwmB6VtsO8wAB5aZjrtTjqobp9cIAQgPVj30Hn2H-gOBCFwNGw8cXvSs0AA_NAk9BE-AQNxz0uK7_BuW7dvOu6FgWxBsqMF6DNAxKkqMu5IKcu5AA
   
   ### Steps to Reproduce
   
   1. select points A,C,D
   2. double click point _dblclick_ to switch data
   3. selection changes to A,B,F
   
   ### Current Behavior
   
   
   Selection changes from A,C,D to A,B,F
   
   ### Expected Behavior
   
   the two data sets have common points A,B,C and unique points D,E and F.
   When switching data I would expect the **selection of common points** to remain the same.
   
   
   ### Environment
   
   ```markdown
   - OS: Win 10
   - Browser: Chrome
   - Framework: JS
   ```
   
   
   ### Any additional comments?
   
   It is not clear what are the rules for persistent selection.


-- 
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: commits-unsubscribe@echarts.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] helgasoft commented on issue #17771: Selection inconsistent on data change

Posted by GitBox <gi...@apache.org>.
helgasoft commented on issue #17771:
URL: https://github.com/apache/echarts/issues/17771#issuecomment-1279477752

   It seems selection goes by **data indexes**. When data is in the same order, like so
   ```
   data1 = [
           [4.05, 3, 'A'],
           [5.02, 5, 'B'],
           [6.03, 7.24, 'C'],
           [7.08, 6, 'dblclick'],
           [11.0, 7, 'D'],
           [12.0, 8.84, 'E'],
         ]
   data2 = [
           [4.05, 3, 'A'],
           [5.02, 5, 'B'],
           [6.03, 7.24, 'C'],
           [7.08, 6, 'dblclick'],
           [10.0, 8, 'F'],
   ];
   ```
   then selection is more consistent - A,C remains A,C, only D changes to F.
   I guess it's up to the developer to handle select/unselect thru actions
   ``` this.dispatchAction({type: 'unselect', seriesIndex: 0, dataIndex: [0,2,4] }); ```


-- 
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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] helgasoft closed issue #17771: Selection inconsistent on data change

Posted by GitBox <gi...@apache.org>.
helgasoft closed issue #17771: Selection inconsistent on data change
URL: https://github.com/apache/echarts/issues/17771


-- 
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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org