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 2020/09/17 11:13:13 UTC

[GitHub] [incubator-echarts] chudur-budur opened a new issue #13302: Can change an option value in a dynamic parallel coordinate plot after rendering for the first time, but not for the next time

chudur-budur opened a new issue #13302:
URL: https://github.com/apache/incubator-echarts/issues/13302


   ### Version
   4.9.0
   
   ### Reproduction link
   [https://jsfiddle.net/ramgorur/zswuac4b/latest](https://jsfiddle.net/ramgorur/zswuac4b/latest)
   
   ### Steps to reproduce
   Just follow the [`JSFiddle` link](https://jsfiddle.net/ramgorur/zswuac4b/latest) and run the code. No setup required.
   
   ### What is expected?
   Once an `option` for a dynamic parallel coordinate plot is set and the plot is rendered, I should be able to change option parameters and the changes should be reflected on the plot on the fly.
   
   ### What is actually happening?
   I'm trying to make a dynamic parallel coordinate plot, where a user should be able to choose if the lines will be straight or `smooth`. In my case, I have a plot and a toggle button. 
   
   <img src="https://i.postimg.cc/d3VpHYpJ/Screen-Shot-2020-09-17-at-7-03-46-AM.png" width="400px"/>
   
   The idea is every time when a user clicks the button, the lines of the parallel plot should become smooth from straight, and it should toggle every time when a user clicks it.
   
   <img src="https://i.postimg.cc/d3NXgfcr/Screen-Shot-2020-09-17-at-7-04-03-AM.png" width="400px"/>
   
   The problem is the option values changes only for the first time only, but not on the next click. What I mean, if I make it smooth from straight, next click doesn't turn it back to straight from smooth (or vice-versa). The change in the `option` is done this way:
   
   ```javascirpt
   function toggleSmooth(){
     console.log("Toggling smooth");
     // get the current option
     option = myChart.getOption();
     console.log("Previous myChart.option.series[0].smooth = " + option.series[0].smooth);
   
     // change and set it
     option.series[0].smooth = !option.series[0].smooth;
     myChart.setOption(option);
     
     // check it again
     option = myChart.getOption();
     console.log("Current myChart.option.series[0].smooth = " + option.series[0].smooth);
   }
   ```
   
   On the `console.log`, I'm seeing the value `option.series[0].smooth` is changing but the change is not being reflected on the plot.
   
   ---
   Not sure if it's a bug or I'm not doing it in a correct way.
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->


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

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] [incubator-echarts] echarts-bot[bot] commented on issue #13302: Can change an option value in a dynamic parallel coordinate plot after rendering for the first time, but not for the next time

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #13302:
URL: https://github.com/apache/incubator-echarts/issues/13302#issuecomment-694163301


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.
   
   If you are interested in the project, you may also subscribe our [mail list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


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

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] [incubator-echarts] 100pah commented on issue #13302: Can change an option value in a dynamic parallel coordinate plot after rendering for the first time, but not for the next time

Posted by GitBox <gi...@apache.org>.
100pah commented on issue #13302:
URL: https://github.com/apache/incubator-echarts/issues/13302#issuecomment-695186867


   It seems to be a bug.
   Before it fixed, perhaps we can only work around with `chart.setOption(option, { notMerge: true })`.


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

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] [incubator-echarts] chudur-budur commented on issue #13302: Can change an option value in a dynamic parallel coordinate plot after rendering for the first time, but not for the next time

Posted by GitBox <gi...@apache.org>.
chudur-budur commented on issue #13302:
URL: https://github.com/apache/incubator-echarts/issues/13302#issuecomment-695188678


   > It seems to be a bug.
   > Before it fixed, perhaps we can only work around with `chart.setOption(option, { notMerge: true })`.
   
   Thanks for the follow-up. But still no luck. Appreciate your help.


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

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] [incubator-echarts] 100pah closed issue #13302: Can change an option value in a dynamic parallel coordinate plot after rendering for the first time, but not for the next time

Posted by GitBox <gi...@apache.org>.
100pah closed issue #13302:
URL: https://github.com/apache/incubator-echarts/issues/13302


   


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

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