I am sorry if this was already addressed but unfortunately I didn't find any thread on this issue. Instead of providing a pre-defined set of colors for the data points (lines etc), is there any way we can have a place for color codes? The color options that are provided are very limited and not very extensible. I think color codes would make much better sense. Comments are appreciated.
Ad Widget
Collapse
graph color options
Collapse
X
-
Doing a few greps on the .php files, it looks like all the colors are defined in classes.inc.php with the function initColors() (beta1.1 at least). At the moment, if you want to add your own colors, you can manually edit this file. Allowing new colors to be added through the Web interface would be more tricky, and would probably require seperating the colors out into a seperate file/page where you define the RGB values, and give the color a name. Interesting idea. It would be nice to have more color options.
Nate -
yeah I'm pretty sure the database stores the friendly name and not the rgb value which means there would be several places we'd have to make changes. and we'd have to provide backward compatability as well.
it's a nice idea, but probably low on the priority list. however, if you add a bunch of colors in I'm sure we can generate a patch so that others could benefit from your work
Comment
-
I'd also like to see a checkbox to enable/disable "Alpha" colors. The transparency of filled regions is cool, but can look somewhat muddy when overlaying several regions. It would be nice to be able to turn this off.
-cameronComment
-
that would probably be far easier to impliment by just creating a "filled area" type and renaming the existing one to "transparent area".
a checkbox would probably require adding a collumn to the table (or doing the conversion in php to make the above solution appear as a checkbox)Comment
-
You're right. That would probably be easier, and more intuitive as well. Either way accomplishes what I want.
-cameronComment
Comment