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 2021/08/26 02:45:06 UTC

[GitHub] [echarts] Qcheng001 opened a new issue #15606: when i switch to another page ,then back to original page,echarts do not display

Qcheng001 opened a new issue #15606:
URL: https://github.com/apache/echarts/issues/15606


   ### Version
   5.1.2
   
   ### Steps to reproduce
   as you see,the problem appears when i deploy the project to server,but i runs well on my own pc,only after i refresh the page,it displays again .how can i solve this problem??
   by the way,i have designed a button to export echarts to base64,when echarts do not display , the button works,and i can get the right base64.
   the link below contains the images-description
   https://blog.csdn.net/qq_42292211/article/details/119925971
   wish anyone can help me !
   Chinese Description(中文描述)
   从带有echarts的界面进入另一个界面再回来后,echarts就不再显示了,刷新后才会显示.在自己电脑上运行没问题,但是部署到服务器上就会出现这个问题,而且没有任何报错,刷新此界面就会重新显示,但是切换出去再回来还是这样.此时我用导出为base64的功能试了下,是可以导出的,但是就是不显示,求各位大鸟帮帮我!!!
   
   ### What is expected?
   after switching to anohter page and then back,echarts still display
   
   ### What is actually happening?
   it doesn't display
   
   <!-- 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.

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] cheerfulHuhan commented on issue #15606: when i switch to another page ,then back to original page,echarts do not display

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


   You can call chart. removeattribute ('_charts_instance_') on the obtained ID node to remove the attribute on the container_ echarts_ instance_


-- 
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] Qcheng001 commented on issue #15606: when i switch to another page ,then back to original page,echarts do not display

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


   i tried to console.log echarts instance,then i located the dom attribute,but when i click it ,explore notification shows:Node cannot be found in the current page!
   when running on my pc ,it doesn't exists


-- 
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] Qcheng001 commented on issue #15606: when i switch to another page ,then back to original page,echarts do not display

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


   ![dh](https://user-images.githubusercontent.com/47962720/130910377-632e2a70-c88a-445e-a622-131832f2e1a8.gif)
   


-- 
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] Qcheng001 commented on issue #15606: when i switch to another page ,then back to original page,echarts do not display

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


   ![dh3](https://user-images.githubusercontent.com/47962720/130934139-1fab8fd2-4c42-4903-80cc-b6aa8602962e.gif)
   export to base64 ,this works well ,


-- 
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] echarts-bot[bot] commented on issue #15606: when i switch to another page ,then back to original page,echarts do not display

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






-- 
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] Qcheng001 commented on issue #15606: when i switch to another page ,then back to original page,echarts do not display

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


   only when echarts container exists,it can display on the page,but if there is any other item ,it can not display 


-- 
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] Qcheng001 commented on issue #15606: when i switch to another page ,then back to original page,echarts do not display

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


   > @Qcheng001 Please check if your container still exists and chart instance has been recreated.
   
   要怎么测试echarts实例有没有重新创建呢,它的容器是确实存在的,现在的话只有在部署到服务器上时才会出现这种情况,在我和同时的电脑上跑的时候就没事
   ![dh2](https://user-images.githubusercontent.com/47962720/130921901-32a0df6a-046d-4c89-baa4-78f1aac24341.gif)
   


-- 
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] pissang edited a comment on issue #15606: when i switch to another page ,then back to original page,echarts do not display

Posted by GitBox <gi...@apache.org>.
pissang edited a comment on issue #15606:
URL: https://github.com/apache/echarts/issues/15606#issuecomment-906128181


   @Qcheng001 Please check if your container still exists and chart instance has been recreated.


-- 
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] Qcheng001 commented on issue #15606: when i switch to another page ,then back to original page,echarts do not display

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


   ![image](https://user-images.githubusercontent.com/47962720/130908010-0ff2293b-e2b9-4ad7-a9dd-4eab79528889.png)
   and i have also tried to print the <div> ,it absolutely exists,but exploer shows that it doesn't exists,also,echarts did not display


-- 
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] pissang commented on issue #15606: when i switch to another page ,then back to original page,echarts do not display

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


   @Qcheng001 Please check if your container is still exists and charts has been recreated.


-- 
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] Ovilia commented on issue #15606: when i switch to another page ,then back to original page,echarts do not display

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


   Try calling `chart.resize()` when the page opened again. 
   A better way would be calling `chart.dispose()` when leave a page and calling `echarts.init` again when returned.


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