If I click on one of the slices it becomes selected (indicated by a
coloured arc appearing at the edge of the slice) but is there any way
to draw this pie with slice 1 preselected?
Thanks for your help.
asgallant
unread,
May 23, 2012, 11:20:56 AM5/23/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-visua...@googlegroups.com
Yes, call the chart's #setSelection method in a 'ready' event listener:
google.visualization.events.addListener(pie, 'ready', function () {
// set the selection to the first row in the chart pie.setSelection([{row: 0}]); });
S_OSTA
unread,
May 24, 2012, 9:00:52 AM5/24/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-visua...@googlegroups.com
Thanks asgallant,
Worked like a charm.
asgallant
unread,
May 24, 2012, 9:23:01 AM5/24/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message