Slider with select event

16 views
Skip to first unread message

Yashmika Sampath

unread,
Dec 8, 2011, 6:33:20 PM12/8/11
to Google Visualization API
Hi everybody,
I designed a dashboard with a column chart and slider and they work
great. Then I needed to add select event to my chart and I did it
successfully but the problem is after I change my chart using the
slider, select event doesn't give me the actual results.
Ex. let's say i have table like:
['Name', 'Donuts eaten'],
['Robert', 3]
['Michael' , 5],
['Elisa', 7],
before using the slider when I click on the bar that represent Robert
it works fine and also for other two. When I select for example
'Donuts eaten' between 5 to 7, my chart changes and I see only the
bars of Michael and Elisa, but when I click on the bar of Michael, it
says Robert and when I click on Elisa it says Michael. So the select
event respect the original table and follow its order. Is it a bug or
a my mistake? any help is appreciated. Thank you all.

asgallant

unread,
Dec 8, 2011, 7:01:14 PM12/8/11
to google-visua...@googlegroups.com
You need to get the dataTable the chart was drawn with in order to do a lookup properly, see http://jsfiddle.net/BbS7H/
Reply all
Reply to author
Forward
0 new messages