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/04/27 09:24:06 UTC

[GitHub] [incubator-echarts] huxiany opened a new issue #12506: 更新主题颜色,需要手动刷新页面后才会显示更换后的主题颜色

huxiany opened a new issue #12506:
URL: https://github.com/apache/incubator-echarts/issues/12506


   ### Version
   4.7.0
   
   ### Steps to reproduce
   代码如下:
   
   ```
   async renderChart() {
       const ECharts = await import(./ECharts");
       const theme = ThemeInfo.currentThemeIsDark() ? "dark" : "macarons";
       const chart = ECharts.default.init(this.divChartRef.current!, theme);
   
       window.addEventListener("resize", function () {
         chart.resize();
       });
   
       chart.setOption(this.getChartOption() as EChartOption);
     } 
   ```
   
   ### What is expected?
   请帮忙确认是不是bug ?
   若不是,那可否提供具体的代码实例作为参考呢?谢谢!
   
   ### What is actually happening?
   尝试过使用dispose(),但并未解决此问题。
   
   <!-- This issue is generated by echarts-issue-helper. 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] 100pah commented on issue #12506: 更新主题颜色,需要手动刷新页面后才会显示更换后的主题颜色

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


   It's by design. 
   After theme updated, it needs to dispose the current chart instance and re-init a new chart.


----------------------------------------------------------------
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 #12506: 更新主题颜色,需要手动刷新页面后才会显示更换后的主题颜色

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


   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