-
Notifications
You must be signed in to change notification settings - Fork 139
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
Cannot read property isHtml of null, Unspecified chart type #326
Comments
Since last week I'm unable to render ColumnChart and LineChart types. But DonutChart's are rendering normally (I haven't tried other types). I'm using the 3.1.11 version. If I resize the viewport, the "Unspecified chart type." message, starts to show repeatedly, as show on the printscreen below. Controller Code
View code
|
As a temp fix change the version of Google charts. In javascript/lava.js add The block should look like:
|
This block of code does not exist at all in /javascript/lava.js. In fact I cannot find it in any of the code for this project. |
@daveblake Your suggestion was useful, but the code snippet you referred doesn't really exist in the library. Based on your suggestion, I added these code snippets below to the header on my page, specifying the version of Google Charts to be loaded: "46" instead of "current". It is a temporary solution, but it solves the problem for now.
|
@jordankobellarz Thank you for your solution, it fixed the issue I was having |
@jordankobellarz Thanks! That works! |
The May 2020 version of the google charts broke seems to have caused a lot of problems on certain graphs. |
Hi everyone! I'm glad you resolved this together. So, am I understanding right that the |
The problem is related to an attribute called "isHtml". Since there is no occurrence of this attribute in any file in this repository, I assume that the error was generated by the Google Charts library itself. That way, as suggested by @daveblake, replacing the "current" version with a specific frozen version, we were able to solve the problem. Given that the latest frozen version of Google Charts was released in May 2020 (48) and it is generating the error, it would be appropriate to specify the latest compatible version, which 47 So, I believe that replacing the line that defines the version to be loaded, is enough to solve the problem. In /javascript/dist/lava.js:
switch to:
|
What Version?
3.1.12
Issue
Controller Code (chart creation code)
View Code
The text was updated successfully, but these errors were encountered: