Google linechart visualization chart disappears when updating it?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to be able to update the line chart of google visualizations. My code was inspired by this Stack Overflow post . Here is my code in question: http://jsfiddle.net/YCqyG/5/ You'll see that when you click the button titled "click", the chart suddenly disappears. UPDATE: When I comment out this line, it appears to be working: // this.element.html(''); And it does not appear to work for the line chart. Any idea why it won't work for the line chart? 回答1: There seem to be a few issues around the usage of jQuery selectors in your code; it's