Ad Widget

Collapse

graph color options

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • turi
    Junior Member
    • Feb 2006
    • 13

    #1

    graph color options

    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.
  • Nate Bell
    Senior Member
    • Feb 2005
    • 141

    #2
    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

    Comment

    • elkor
      Senior Member
      • Jul 2005
      • 299

      #3
      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

      • turi
        Junior Member
        • Feb 2006
        • 13

        #4
        Ok I am up for challenge, but does Zabbix have any developer guide?

        Comment

        • elkor
          Senior Member
          • Jul 2005
          • 299

          #5
          no. technically zabbix doesn't accept user submissions, however there is a forum for patches and these sometimes eventually make it into the code.

          Comment

          • cameronsto
            Senior Member
            • Oct 2005
            • 148

            #6
            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.

            -cameron

            Comment

            • elkor
              Senior Member
              • Jul 2005
              • 299

              #7
              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

              • cameronsto
                Senior Member
                • Oct 2005
                • 148

                #8
                You're right. That would probably be easier, and more intuitive as well. Either way accomplishes what I want.

                -cameron

                Comment

                Working...