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/07/27 20:47:01 UTC

[GitHub] [echarts] Cody-Soultz opened a new issue, #17437: [Bug] Redraw not triggered after setOption call inside custom toolbox feature

Cody-Soultz opened a new issue, #17437:
URL: https://github.com/apache/echarts/issues/17437

   ### Version
   
   5.3.3
   
   ### Link to Minimal Reproduction
   
   https://jsfiddle.net/codysoultz/xahwg3j4/13/
   
   ### Steps to Reproduce
   
   Two X axis graph with 2-D data. In my example, the data is furnace temperature of a coil of metal where the temperature is the y value and the footage into the coil and the time are the x axis. Check out the jsfiddle for details.
   
   When setOption is called inside of the toolbox handler it never is not redrawn with new options until there is an action that causes a redraw.
   
   ### Current Behavior
   
   When the custom toolbox item is pressed nothing visually happens. In the jsfiddle you can cause a redraw by zooming in or out with the mouse wheel then the setOption takes effect
   
   ### Expected Behavior
   
   When setOption is called inside of the toolbox handler it should send an action for redraw if requitred.
   
   ### Environment
   
   ```markdown
   No Framework
   ```
   
   
   ### Any additional comments?
   
   My workaround is to cause a "changeDataView" action to fire inside of the toolbox handler after the setOption function has been called. To see this uncomment lines 72-75 in the js of my jsfiddle.
   
   ```
   extensionAPI.dispatchAction({
     type: 'changeDataView',
     newOption: {}
   });
   ```


-- 
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] Cody-Soultz commented on issue #17437: [Bug] Redraw not triggered after setOption call inside custom toolbox feature

Posted by GitBox <gi...@apache.org>.
Cody-Soultz commented on issue #17437:
URL: https://github.com/apache/echarts/issues/17437#issuecomment-1260315117

   It’s been 2 months, Should I close the ticket as I have found a workaround? I would create a pull request, but I am unfamiliar how the update events are triggered and propagated.


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