Open mockdeep opened 10 years ago
@mockdeep shouldn't you be checking if data set is empty before using Gchart?
@katgironpe It doesn't seem like the role of the library to make that decision for users. If I pass an empty data set to the Google Charts API, it returns a blank graph, which is fine for my purposes. At the very least, a meaningful error message would be helpful.
So your expectation is that it returns an empty graph? Or an error?
@mockdeep it's a rare case but agree about proper error handling.
I think the ideal situation for me would be for it just to return an empty graph. It's fairly common in the dev environment and in tests to have empty graphs, so it would be nice just to render it transparently instead of having to handle the error case.
请问使用Google chart要引入哪些文件,去哪里下载?
When I have an empty data set, I get an error from google charts: