Results 1 to 3 of 3

Thread: Custom chart colors

  1. #1
    Administrator Bok's Avatar
    Join Date
    Oct 2003
    Location
    Wake Forest, North Carolina, United States
    Posts
    24,468
    Blog Entries
    13

    Custom chart colors

    and cI've been tinkering with this and wanted to get some feedback before going further...

    Simple at the moment, in statstool there is a new column named 'Chart Color 1'. This is in hex format (as that is what chart director uses, sorry!). It is of the format AAxxyyzz, where AA is a transparency option of 00 to FF (00 is not transparent).

    Anyways, this allows you to set the colors of the charts, initially only on the userstats.php page as that's all I've coded, but it's simple to do the others too. It will only show up if you are logged in, otherwise it'll show the default colors. If you are logged in, go here after altering the color in statstool and check the graphs. For instance 800000FF gives a semi-transparent blue color.

    It opens up the option to set many custom options within the stats, is there interest in this at all ? What kind of things would you like to be able to control....?

    Bok

  2. #2
    Administrator AMDave's Avatar
    Join Date
    Sep 2004
    Location
    deep in a while-loop
    Posts
    1,948
    Love the idea.
    All features in shades of green would be terrific. snicker snicker j/k

    If you can go that way you can set options for background, text, borders etc, but I'd leave the graph line colours for last as there are some tricks there depending on background & grid-line colours wich "could" confuse the novice user. (diagnosing chart lines that have blended with the background colour is so much fun)

    A fixed set of optional CSSs might be the go to reduce load on the server. I'm apprehensive about the sever-side render load if all users had independant optional colour settings affecting rendering on the charts etc. Not sure how you have your http cache set up, but it would rapidly reduce the frequency of hits on a set of cached renders. If your cached hits are already low then there's no issue - and then I'll have all mine in green thanks

    just some thoughts.
    . . . . . ___
    . . . . . . .\___/\______
    . . . . . . . \__AMD___\\__
    -----------------------------------------

  3. #3
    Administrator Bok's Avatar
    Join Date
    Oct 2003
    Location
    Wake Forest, North Carolina, United States
    Posts
    24,468
    Blog Entries
    13
    Added a couple more options whilst tidying up statstool a little..

    Bok

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •