Unfortunately, you cannot specify the slice style based on the category. However, if you know which categories you will have ahead of time (which you must, since you seem to know what style you'll want to assign to each category), then you can iterate through each row in the datatable, get the category, and build up your style array dynamically.
- Sergey On Tue, May 14, 2013 at 1:56 PM, Justin <[email protected]> wrote: > I have a pie chart that is dynamically getting the table, therefore the > categories values are constantly changing. Is there a way to specify the > slice style based on the category as opposed to the index position? > > -- > 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?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
