I'm afraid that those are really the only two options you have. You can either define your own colors for both charts or you can put the data in the same order. I think putting the data in the same order (maybe via a sort operation) is your best bet.
- Sergey On Tue, Sep 17, 2013 at 8:07 AM, Al Caughey <[email protected]> wrote: > I am using these charts in an application that I have developed for DD-WRT > routers... the monitors the volume of upload & download activity for each > device on the network and generates a variety of table and graphs showing > hourly, daily and monthly totals. > > On the daily usage tab, I show a pie chart of the total usage for the > given day and also an hourly breakdown in a column chart... I would like to > have the colours of the segments in the two charts match... the problem is > that the two different functions assemble the data (and the elements do not > get inserted into their arrays in the same order... so the colours > differ). Also, the number of segments in the two charts will differ > considerably from one day to the next (and from one installation to > another)... so it would be hard to define a simple look up. > > Any suggestions? > > Thanks. > > Al > > BTW - if you have a router with the DD-WRT firmware and want the script, > see http://www.dd-wrt.ca/phpBB2/viewtopic.php?t=174706&highlight=yamon > > -- > 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. > 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. For more options, visit https://groups.google.com/groups/opt_out.
