Ahh, I the problem is likely that you are calling #setAction on the
ChartWrapper, not the chart object. You need to call it on the chart
object, which isn't available until the ChartWrapper draws the chart, so
you need to do something like this:
google.visualization.events.addListener(chart, 'ready', function () {
chart.getChart().setAction(...);
});
On Saturday, November 23, 2013 12:59:46 AM UTC-5, Tribblehunter wrote:
>
> Thanks Asgallant.
>
> Have tried to include that but the error i get is Uncaught TypeError:
> Object #<Y> has no method 'setAction'
>
> The chart is inside a dashboard. but it is my understanding that this
> should not affect it as chart editor and other script all call on the chart
> variable perfectly.
>
> Will look very carefully at my code. I am guessing I made an error.
>
> will post again in a few days.
>
> Tribblehunter
>
>
>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.