react-google-charts
react-google-charts copied to clipboard
Attempting to load version '51' of Google Charts, but the previously loaded 'current' will be used instead.
Use of react-google-charts now seems to be consistently throwing this warning in the console:
Attempting to load version '51' of Google Charts, but the previously loaded 'current' will be used instead.
You can see a simple example here (open the chrome dev console)
https://codesandbox.io/s/react-google-charts-s31bo?from-embed
And here's a screenshot of same:
If you just want to ignore it, you can use this code until they'll figure out a fix.
const originalWarn = console.warn;
console.warn = function (...args) {
const arg = args && args[0];
if (arg && arg.includes('Attempting to load version \'51\' of Google Charts')) return;
originalWarn(...args);
};
FYI, I think they've already fixed it in the Angular version.
https://github.com/FERNman/angular-google-charts/issues/162
FYI, I've just replaced it with recharts, Google Charts has not updated its Material part since 2016 (https://github.com/google/google-visualization-issues/issues/2143).
Thinking about departing google charts too.... also using recharts... though can't find anyone else with a good gauge chart like google charts, so I guess I'll keep staring at that warning :(
@cburkins, you better use this package than staying with Google Charts deprecated package.
https://codesandbox.io/s/react-d3-gauge-gwebx
Hi. Any substitutes for GeoCharts?