This is what you want pieSliceText: 'label'.
in addition i found out you can use pieSliceText: 'value' to show
7,11,2,2,2 or pieSliceText: 'percentage' which is the default setting.
new
google.visualization.PieChart(document.getElementById('visualization')).
draw(data, {title:"So, how was your day?",pieSliceText: 'label'});
On Aug 15, 12:38 pm, Jré Sarenac <[email protected]> wrote:
> Thanks Jinji!
> I've been trying to get it to work but haven't been successful yet.
> I've tried all of the following to get it to work:
>
> ...
> google.load('visualization', '1', {packages: ['piechart']});
> ...
> _piechart.draw(data, {pieSliceText: 'work'|'commute'|'sleep'});
> _piechart.draw(data, {pieSliceText: 'work','commute','sleep'});
> _piechart.draw(data, {pieSliceText: 'work,commute,sleep'});
> ...
>
> Where have I been going wrong?
>
> Thanks!
> Jré
>
> On Sun, Aug 15, 2010 at 8:28 AM, Jinji <[email protected]> wrote:
> > This is not documented yet, but you can add pieSliceText: 'value' to your
> > options.
>
> > On Thu, Aug 12, 2010 at 9:20 PM, Jré <[email protected]> wrote:
>
> >> Hey everyone,
>
> >> Is it possible to put labels (text) on slices of interactive pie
> >> charts?
>
> >> For example: in this example the labels on the slices are percentages
>
> >>http://code.google.com/apis/visualization/documentation/gallery/piech...
> >> I'd like it to say Work, Commute, Sleep, etc. instead.
>
> >> Thanks in advance!
> >> Jré
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Google Visualization API" group.
> >> To post to this group, send email to
> >> [email protected].
> >> To unsubscribe from this group, send email to
> >> [email protected]<google-visualization-api%[email protected]>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/google-visualization-api?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Visualization API" group.
> > To post to this group, send email to
> > [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<google-visualization-api%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-visualization-api?hl=en.
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.