I recently had a "bad" experience with the Google chart API. I was using things like:
var chxa = '&chxa='; var chxs = '&chxs='; var chxt = '&chxt='; ..... chxt += ....; chxa += .....; chxs += ...... (Where ..... is script depending on data.) final_chart_url = cht + chxa + chxs + ...... Of course, I'm using font sizes as small as possible to cram as much code onto the screen as possible, and my vision is not what it used to be. So if I inadvertently use "chxa" instead of "chxs", (they *are* beside each other on the keyboard) the javascript interpreter will not raise an error, because both variables are defined. If there are errors in a chart parameter, the parameter in error is silently ignored. What's worse, if the final url has a chart parameter defined more than once, it will happily use the last one without giving an error. I suggest that instead the API should return a PNG image of an infomative error message in both cases. -- You received this message because you are subscribed to the Google Groups "Google Chart API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-chart-api?hl=en.
