Re: [visualization-api] JavaScript Template Strings

2023-11-21 Thread 'Ray Thomas' via Google Visualization API
Thanks Daniel, I guessed it was still a string The drawchart method works just as well as anything and accepts practically anything in its option list so I really was just exploring possibilities. I also tried eval() and that returns the strict JSON response as well. Ray On Tuesday,

Re: [visualization-api] JavaScript Template Strings

2023-11-21 Thread 'Daniel LaLiberte' via Google Visualization API
Hi Ray Your chartStr is still a string, not an expression, even though it looks like an expression when you print it out. At best, you would have to evaluate the string to turn it into code. The drawChart function and ChartWrapper class do a lookup of the string name of a chartType in order to