Here's an example: http://jsfiddle.net/asgallant/tuaQX/
On Friday, June 14, 2013 8:33:36 AM UTC-4, armon d wrote:
>
> I don't understand, could you explain me with more detail and also i
> don't know what is
> "event listener" and how i can use it ??????
>
> On Wednesday, June 12, 2013 5:27:58 PM UTC+2, Jeremy Faller wrote:
>>
>> Armon:
>>
>> It should be easy to do. You just install an event listener, and then do
>> what you'd like with the event. For example:
>>
>> function drawVisualization() {
>> // Create and populate the data table.
>> var data = google.visualization.arrayToDataTable([
>> ['Task', 'Hours per Day'],
>> ['Work', 11],
>> ['Eat', 2],
>> ['Commute', 2],
>> ['Watch TV', 2],
>> ['Sleep', 7]
>> ]);
>>
>> // Create and draw the visualization.
>> var chart = new google.visualization.PieChart(document.getElementById(
>> 'visualization'));
>> chart.draw(data, {title:"So, how was your day?"});
>> google.visualization.events.addListener(chart, 'select', function() {
>> alert(chart.getSelection()[0].row);
>> });
>> }
>>
>>
>> On Wednesday, June 12, 2013 3:54:51 AM UTC-4, armon d wrote:
>>>
>>> hello
>>> i went to use the Visualization " Pie Chart ",
>>> i connected my database with " Pie Chart " but know i want to use it
>>> like this :
>>> for every slices in my " Pie Chart ", i wanted that it will be able to
>>> clik and open another page for connecting avec another chart ......
>>> if you can explain me with detail or if you have an exemple ...
>>>
>>> thank you ....
>>>
>>
--
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.