react-google-charts icon indicating copy to clipboard operation
react-google-charts copied to clipboard

Attempting to load version '51' of Google Charts, but the previously loaded 'current' will be used instead.

Open cburkins opened this issue 3 years ago • 5 comments

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:

image

cburkins avatar Dec 24 '21 17:12 cburkins

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

eranbetzalel avatar Feb 03 '22 20:02 eranbetzalel

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

eranbetzalel avatar Feb 03 '22 20:02 eranbetzalel

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 avatar Feb 09 '22 19:02 cburkins

@cburkins, you better use this package than staying with Google Charts deprecated package.

https://codesandbox.io/s/react-d3-gauge-gwebx

eranbetzalel avatar Mar 16 '22 16:03 eranbetzalel

Hi. Any substitutes for GeoCharts?

alynaug avatar Aug 07 '22 13:08 alynaug