-
Notifications
You must be signed in to change notification settings - Fork 62
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
Google Bar, Scatter and Line cant be "required" twice on a page #995
Comments
it will load 3rd and 4th though it seems |
@GordonSmith can be tested via dermatology run serialization test and it wont run ... and then unclick and click again and it will run everytime after that .... is there a problem with the requirejs goog plugin? |
only effects new 1.1 version of google visualization i believe |
wasnt able to reproduce outside of VIZ ... something to do with our dataFactories and anonymous functions ... and only happens after loading google visualization 1.1 |
Mismatched anonymous define() module: |
if ( typeof define === "function" && define.amd && define.amd.jQuery ) { using a named module above i dont know how that works (cant get it working) ... but maybe that might fix it? |
@GordonSmith This is currently causing Travis CI to fail |
@jbrundage @mlzummo Nothing obvious I can spot (but I can reproduce) - the material charts are still in beta, so we may have no control over it (who issued this PR - did you know they were still beta?) |
@GordonSmith I am not 100% sure but i dont think the issue is 100% google as i can only reproduce the issue when using the new DataFactory (so far that is) |
I issued and I did not realize. #927 |
Should we revert back to old version and forgo dual y axis for now? |
@dtsnell4 is there any reason we can't revert or did the new version provide a feature we needed? |
@jbrundage @mlzummo @dtsnell4 I think it may just be a async loading issue and that Line 1.1 needs corechart to be loaded first - investigating... |
I think material chart needs core charts to be fully loaded before its loaded. While this fix appears to work, I am not sure why the corechart in the base CommonND is not being loaded first. Fixes hpcc-systemsGH-995 Signed-off-by: Gordon Smith <[email protected]>
its no longer happening in dermatology |
It's occasionally still happening in dermatology |
Ensure each class only loads what is actually required. Fixes hpcc-systemsGH-995 Signed-off-by: Gordon Smith <[email protected]>
well it was nice that travis was catching it (even with the d3-cloud issue). |
https://gist.github.com/Integralist/1599546 take a look at this |
i think i know how to fix this but its going to require a pretty big refactor. @GordonSmith perhaps after i explain you can help figure out a way to minimize the code required? |
... |
That is effectively what |
nts: perhaps looks at r.js? |
Hack to work around google webfont issue: typekit/webfontloader#278 Fixes hpcc-systemsGH-995 Signed-off-by: Gordon Smith <[email protected]>
Hack to work around google webfont issue: typekit/webfontloader#278 Fixes hpcc-systemsGH-995 Signed-off-by: Gordon Smith <[email protected]>
GH-995 RequireJS + Google Material Charts
http://rawgit.com/hpcc-systems/Visualization/candidate-1.8.0/demos/dermatology.html?src/google/Bar
Go to the above link and toggle S. Test to see that it doesn't load the second instance of src/google/Bar
The text was updated successfully, but these errors were encountered: