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/12/21 03:49:37 UTC

[GitHub] [echarts] TIGeMi opened a new issue, #18086: [Bug] Piecewise visualMap pieces are reset when setOption()

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

   ### Version
   
   5.3.3
   
   ### Link to Minimal Reproduction
   
   https://codepen.io/Ovilia/pen/dyYWXWM?editors=1111
   
   ### Steps to Reproduce
   
   1. Toggle some pieces of the visual map into `inactive`
   2. Click on the `Set option` button to invoke chart.setOption({})
   3. Notice the visual map pieces
   
   ### Current Behavior
   
   The state of visual map pieces is reset, and the previous state is not preserved
   
   ### Expected Behavior
   
   The state of pieces that have been toggled into `inactive` should be kept (`inactive`)
   
   ### Environment
   
   ```markdown
   - OS: Windows 10
   - Browser: Chrome 108.0.5359.125
   ```
   
   
   ### Any additional comments?
   
   Maybe this issue relates to https://github.com/apache/echarts/issues/8655


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


Re: [I] [Bug] Piecewise visualMap pieces are reset when setOption() [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #18086: [Bug] Piecewise visualMap pieces are reset when setOption()
URL: https://github.com/apache/echarts/issues/18086


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


Re: [I] [Bug] Piecewise visualMap pieces are reset when setOption() [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #18086:
URL: https://github.com/apache/echarts/issues/18086#issuecomment-2568376104

   This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.


-- 
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 commented on issue #18086: [Bug] Piecewise visualMap pieces are reset when setOption()

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

   Yes, _visualMap_ is reset. But there is a workaround:
   If you want to keep the _visualMap_ selection on _setOption_, you could keep track of it and dispatch it back after _setOption_.  
   [Demo Code](https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=PYBwLglsB2AEC8sDeBYAULWAPAgliAzgFzLqaYAmAhmFSQNoDkOjANLIwEJscDCjAXTKwAvq2EBPPIRJIxwggFMAThEXFY9VBnJgJIRSUYAjKsrbDKNOpoCMAJgAM7J89i2ArI6E6RA8ToAboQArlQANgCyVCCylrAAthDQJLaOzvEJVFgkAMzpAeSwegZGIGoAxooA7oSKFjqUEAmK0ARQKe6F5MCqrWBGgSqQFRENRaoA5gAWA-4ZjcWgRlXQYCrj5MkASlTQk4aki5gVwOG9DIwAxABm9hW5tlQ81_YALMYA7HeC8SLC8jQIgA3OhAmZYIEEkpwuwKmt4I5QWgEhJeNMzGAAHQwAAUjGotGUewOMMUFXWFB4NxC0ApHVxIDMVGhAEojpgoTCELAmcToViyRTFBRkScYAQzoosedJriuYpwqzkSJlehUejMTjoPiKMZwhVwhAKgBram0-l4vksgjs7SYDUY5TYpRgADy4AZSGKEDA4UOSHWWDmjFdHsgMA4AGp4WAo1GRKqxYk0U7sRRCEywBVpjhLTr7bp9IdQ4ryWAACLWXb7erdTBCykkBWwgFqoGsoA) - double-click on bars to do _setOption_


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


Re: [I] [Bug] Piecewise visualMap pieces are reset when setOption() [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #18086:
URL: https://github.com/apache/echarts/issues/18086#issuecomment-2581244290

   This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!


-- 
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] TIGeMi commented on issue #18086: [Bug] Piecewise visualMap pieces are reset when setOption()

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

   Thanks @helgasoft for the workaround, but there is actually an issue that needs to be fixed.


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