-
Notifications
You must be signed in to change notification settings - Fork 126
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
Passing an object of type DataTable as a data attribute to google-chart does not work #329
Comments
Hi @maxevilmind A There is documentation about the string at the class level: https://github.com/GoogleWebComponents/google-chart/blob/main/google-chart.ts#L100. It would be useful to explain that on the |
@rslawik ehh, I probably was too tired that day passing object as an attribute... |
Passing an object of type DataTable as a data attribute to google-chart does not work.
In the network tab I see a request to localhost that looks like this:
http://localhost:9001/[object%20Object]
Documentation in
google-chart.js
saysThe data format can be a two-dimensional array or the DataTable format * expected by Google Charts.
What happens actually:
In reality you just check if
data
is string and if not you fetch it (???)This logic is not documented and looks a bit broken.
Was it done intentionally that you don't support passing of
DataTable
here?The text was updated successfully, but these errors were encountered: