pkdevbox / plotkit

Automatically exported from code.google.com/p/plotkit
0 stars 0 forks source link

pie graphs skip colors for zero-value slices #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If I specify these color values and data:

colorScheme: [ red, green, blue, yellow ]
data:        [  10,     5,    0,     10 ]

...what PlotKit will give is red, green, and blue slices; it skips the zero
value without accounting for this in the color scheme.

This is a problem when applications display dynamic data along with
custom-generated legends for the pie colors.

Original issue reported on code.google.com by fel...@felipegasper.com on 17 Mar 2010 at 7:44

GoogleCodeExporter commented 9 years ago
This patch addresses the issue.

Original comment by fel...@felipegasper.com on 17 Mar 2010 at 8:03

Attachments: