Three things:
1) you forgot to create the ColumnChart. Put this before the event handler:
var columnChart = new
google.visualization.ColumnChart(document.getElementById('column_chart_div'));
2) you don't need to call google.visualization.events.trigger; the API will
call that by itself when you select an element.
3) you don't want to call google.load or google.setOnLoadCallback a second
time; just add the corechart package to the list of packages loaded in the
initial load call.
See this: http://jsfiddle.net/asgallant/DjYfN/1/
On Saturday, May 18, 2013 10:29:02 AM UTC-4, hertyu wrote:
>
> Hi!
> I'm doing something like that, but instead of a Pie Chart,I'm using a
> Treemap.
>
> I have done everything related to the TreeMap, and I've been trying to
> adapt the example you've made it to my problem, but I have not gotten it
> right.
>
> My code is this:
> http://jsfiddle.net/hertyu/DjYfN/
>
> Would I could say that is what I have wrong?
>
> A lot of thanks
>
--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.