imccrum / canviz

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

Support ColorBrewer color schemes #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Support all the colors listed here:

http://graphviz.org/doc/info/colors.html

We currently only have the X11 color scheme in gvcolors.js. Should probably put 
the ColorBrewer 
colors into a new JavaScript file brewercolors.js rather than including them in 
gvcolors.js, so 
gvcolors.js doesn't get too large.

There should be an automatic way to convert from lib/common/brewer_colors to 
brewercolors.js, 
via a script. Implement #1 first, but the format of brewer_colors is different 
from the format of 
color_names so it will need a different script.

Note the need to include their licensing verbiage in our documentation.

Original issue reported on code.google.com by ryandesi...@gmail.com on 20 Sep 2008 at 9:52

GoogleCodeExporter commented 9 years ago
As of r104, gvcolors.js is called x11colors.js to better reflect the name of 
the color scheme contained in the file. 
In r106 I added brewercolors.js and the scripts that generated it, but you 
can't exactly use it yet because the 
colors in brewercolors.js and x11colors.js overwrite each other.

Original comment by ryandesi...@gmail.com on 9 Oct 2008 at 9:38

GoogleCodeExporter commented 9 years ago
As of r110, color sets no longer overwrite each other.

Original comment by ryandesi...@gmail.com on 10 Oct 2008 at 8:52

GoogleCodeExporter commented 9 years ago
The ColorBrewer license was added in r139.

Original comment by ryandesi...@gmail.com on 23 Oct 2008 at 12:51