gcsoftlab / milkchart

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

Change color and shape implementation #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The colors should be an Array of color values and as an option.  There may 
also be a need for a monochromatic feature that generates the colors based on 
a given color.

Shapes need to be a Hash.  Should this be an option?

Original issue reported on code.google.com by theivi...@gmail.com on 13 Sep 2009 at 5:43

GoogleCodeExporter commented 8 years ago
I need to commit the changes but the colors will now act as follows:
Give a single color, Color or [Color,] and MilkChart will create a gradient 
from that color to white
Give 2 colors, [Color, Color], and MilkChart will create a gradient between the 
two colors
Give a larger array and MilkChart will just used those colors

Original comment by theivi...@gmail.com on 4 Nov 2009 at 11:46

GoogleCodeExporter commented 8 years ago
this has been implemented in the _src.js file. I also added similar 
functionality to 
the default colors so there will usually be enough unique colors.  Just don't 
make a 
graph with more than 60 columns :)

Original comment by theivi...@gmail.com on 8 Nov 2009 at 8:02