New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple instances of Material Charts #2066
Comments
This seems to be a problem only with the matirial charts the other ones seem to work fine I suggest using those until its fixed. |
unfortunately i have to say the same suddenly stopped to work correctly in all of my scripts
it could help us to change release version or something like this otherway i remember that it was the same when i tried to describe more that 1 div do you know anyone what’s happened ? |
Armelina, I don't know why your multiple charts suddenly stopped working. Everyone, The problems people have seen with the sizing of multiple instances of On Mon, Oct 5, 2015 at 6:01 AM, armelina notifications@github.com wrote:
Daniel LaLiberte https://plus.google.com/100631381223468223275?prsrc=2 - |
Hello Everyone, i got the same error. Since later on Friday or sometimes on Saturday, only one instance of the chart is loading. Until then, all 3 instances where running perfectly. I didn't change any code since that. I'm already loading the 1.1 Version Best |
Hi, everyone. I ran into the same issue. When multiple charts render, only the first one is successful. I was able to resolve the issue by: use loader for a static version: <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"\> <script type="text/javascript"> google.charts.load('43' or '42' or '41', {packages: ['corechart']}); google.charts.setOnLoadCallback(drawChart); </script>Somehow, this resolved the issue for me. |
Hi xihan, |
Hi, dlaliberte Thanks for helping. When there are concurrent calls to ChartWrapper.draw(), only one chart is rendered completely, while the other charts are rendered with empty svg tag. I modified the original jsfiddle from Al3xR0: https://jsfiddle.net/jh0jnu4b/2/ Also, I am not using material charts. |
This issue still exists. It was suggested that a new release four days ago would fix the issue. At the moment the easiest thing for me is to put each chart in an iframe or to use the older Image Charts which is quite tempting. |
The rollout of the v43 candidate release that would fix this problem is On Fri, Oct 9, 2015 at 8:50 AM, stephen-bedford notifications@github.com
Daniel LaLiberte https://plus.google.com/100631381223468223275?prsrc=2 - |
This doesn't seem to work using either version 43 or others (41 and 42). In fact no charts are displayed. I have cut and pasted lines for page into my code and checked the page source (produced by a script) matches.
|
If no charts are displaying when you switch to using the frozen version You have to change three things, typically.
google.charts.load('43', {packages: ['corechart']});
google.charts.setOnLoadCallback(drawChart); On Mon, Oct 12, 2015 at 5:21 AM, stephen-bedford notifications@github.com
Daniel LaLiberte https://plus.google.com/100631381223468223275?prsrc=2 - |
Thanks. Found error - extra >
|
@dlaliberte any feedback for the duplicate issue ? |
Hi Alexandru, Your issue sounded like the same kind of problem others were reporting. Can you put together a demonstration of what you are seeing using jsfiddle.net? Or post a link to a page. Thanks. |
Hey @dlaliberte , Actually I already posted a jsfiddle on the first comment :). Just look at this example. Thanks. |
Sorry, your jsfiddle was missing from my email. Using the frozen version loader does fix whatever the problem is, however: https://jsfiddle.net/5peasu9r/3/ Hope that is good enough. |
Yes, it works like this. Thank you 👍 |
Hi @dlaliberte the work around with frozen version was working perfectly before but now it also has stopped working. your link is also not working. : https://jsfiddle.net/5peasu9r/3/ |
Yes indeed giving me the error when loading static charts 43:
|
I just modified version 43 to 42 from |
I checked and it seems working for now thanks @Al3xR0. |
Same experience. I can confirm that the following works: |
The 43 release is still in progress, and we did an update yesterday. However, the version of WebFontLoader that we pushed had a bug. I just did another push to frozen 43, using the old version of WebFontLoader, so it should work now. |
Good stuff. I can confirm that loading multiple bar graphs works on version 43 now. Glad you were able to nail down the source of the bug. |
I'm still facing this issue. Only one of the two bar charts renders and that too randomly. I have tried loading with
|
@ratpik Firstly, please try to clear your cache or load in an incognito or private browsing window. You might still have the old code cached for whatever reason. If it still fails, please post a jsfiddle reproducing the issue, as well as the browser/OS combination that you found this to fail on. Ideally, please list multiple configurations that you have tested. Most importantly, if you don't test anything else, please test on Chrome and report back whether that works. This issue is expected to be fixed in v43, and I'm surprised to hear that it's still occurring. |
…2066 Signed-off-by: Daniel Spors <daniels@scavix.com>
I think the problem still occurs if you load corecharts and bar at the same time instead of the issue was gone |
I have a page with multiple instances of material charts. Everything was working perfect until 2-3 days ago. Now it only loads just 1 instances.
I tested also with fresh code from google, and I cannot add more instances because just one will show.
I added an example on JSFiddle https://jsfiddle.net/5peasu9r/
The text was updated successfully, but these errors were encountered: