Yes, what I was looking for was to add the percentage to the name in the legend. At the moment I loop over the table and generate my own percentage values to match those in the piechart, but for large tables, this requires processing the table one additional time.
The reason for this being basically that I am looking to use the 'label' legendposition for displaying the labels and the select event to do something else (disabling popups). If I do that there is no built-in way to display the value of the slice. -- Cheers, Rune V. Sjoen You always pass failure on the way to success On Sun, Dec 6, 2009 at 10:51 AM, VizGuy <[email protected]> wrote: > I am not sure what you want here. > The values are just what you, as the owner of the data table, put there... > If you want to get it back from the chart, you can use the select event (see > the docs). > > Reading again, do you want to set the name of the slice (that appears in > the pop up and in the legend) to include the value and percentage? > It makes sense to add it to the legend, but not to the popup (where you see > it anyway). > This feature is not available today. > > Will consider adding it. > > Regards, > VizGuy > > > > > 2009/12/1 Rune V. Sjøen <[email protected]> > >> Is there any way to extract the values and/or percentage values from a >> pie/bar chart ? >> >> If I understand it correctly there is no way to print the value of the >> slice on the slice itself, so my goal is to add it to the formatted string >> representing the slice name. >> >> -- >> Rune V. Sjøen >> You always pass failure on the way to success >> >> -- >> 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.
