Skip to content
Advertisement

New Google Charts Error when clicking on row in table. Uncaught TypeError: b.split is not a function — Has been working for several years

We have multiple Google Visualization tables that we have been successfully using for several years. However, in the past week, we started seeing this error in many of them

Uncaught TypeError: b.split is not a function

What we are trying to do is click on a row in a table to allow us to hyperlink to another page based on the contents in that row. As I said, it has been working for several years. I know exactly where it breaks. It is this line that triggers the error:

JavaScript

I know it is this row because the hyperlink works as expected if I hardcode a value for ROW.

Any suggestions for what might be causing this error on code that hasn’t changed?

Here’s the code:

JavaScript

Advertisement

Answer

I solved my issue using the prior version 49 of google charts.

JavaScript

or:

JavaScript

If you use the actual version yo should change your code as per the following information:

https://groups.google.com/g/google-visualization-api/c/G4Keck3KVwU

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement