Results 1 to 10 of 10

Thread: Change Charts Colors

  1. #1
    Mars is offline Member
    Join Date
    May 2008
    Posts
    6

    Default Change Charts Colors

    How can I change the Charts Colors at the Dashboard? Sugar Version Version 4.5.1f
    Thanks a lot!!!!

  2. #2
    jerspice is offline Junior Member
    Join Date
    Dec 2008
    Location
    Minneapolis, MN
    Posts
    3

    Default Re: Change Charts Colors

    I too am very interested in doing this. I've been digging through the various .php files and have found a number of references to the color_array, but dont see an immediate way to populate this. It appears that it is being handled via an xml file, but none of the xml that I've found lists actual color information.

    I'm in dire need to change the graph colors for users/opportunites/colors on the dashboard as a number of my users are color blind and/or visually impaired and can't tell the difference between certain colors. I've scoured this forum to no avail (and I do apologize if I just missed it).. If anyone has any information on this it would be greatly appreciated.

    Regards,
    Jeremy

  3. #3
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Change Charts Colors

    Check out include/charts/Charts.php for the color array and the generate_graphcolor function.

  4. #4
    jerspice is offline Junior Member
    Join Date
    Dec 2008
    Location
    Minneapolis, MN
    Posts
    3

    Default Re: Change Charts Colors

    Hi Eggsurplus,

    Thanks very much for your quick response. Actually right after I wrote this I just did a search for hex red and found the Charts.php... Upon finding it, I attempted to change the values between the light green and aqua blue to something like bright pink... saved, etc... However, when I refresh the page the old values are still there... Do I need to make changes in another area?

    Again, thanks for your help.

    Jeremy

  5. #5
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Change Charts Colors

    You may need to do an Admin->Clear Chart Data Cache

  6. #6
    jerspice is offline Junior Member
    Join Date
    Dec 2008
    Location
    Minneapolis, MN
    Posts
    3

    Default Re: Change Charts Colors

    Hello,

    As written, I appreciate you help thus far...

    I tried doing the repairs before I wrote you back. In fact, I used all of the admin options under repair to clear/rebuild/etc with no luck. I then went into Charts.php and set every single value in the $color array to black and repeated the process. I verified that all the cache files are in fact being deleted and .xml files in /cache/xml are dated to the second I refreshed with no luck.

    I did notice that in/include/charts the .swf files are dated back to my original install, but I was under the impression these were populated with the values in Charts.php anyways.

    Any thoughts, ideas, etc? Have you been successfully able to get this to work by chance?

    Thanks,
    Jeremy

  7. #7
    huracaniki is offline Member
    Join Date
    Oct 2008
    Posts
    5

    Default Re: Change Charts Colors

    Hi, I have try the solution posted in the forum. I change in the Charts.php the code colors and delete in the repair menu de Charts cache and no positive results I have obtained.

    I dont know why, but It's impossible to change de colors on the vars of the charts.

    any solution?

    thanks.
    Last edited by huracaniki; 2009-01-14 at 04:31 PM. Reason: notifications

  8. #8
    kf6bbl2's Avatar
    kf6bbl2 is offline Sugar Community Member
    Join Date
    Jan 2008
    Posts
    24

    Default Re: Change Charts Colors

    Was this ever solved?
    Same issue here.

  9. #9
    tcpandip is offline Junior Member
    Join Date
    Jan 2012
    Posts
    2

    Default Re: Change Charts Colors

    I know this is old but this was my problem too and ...

    Make sure include/charts/Charts.php is actually in your php graph file.

    require_once('include/charts/Charts.php'); or the custom directory.

  10. #10
    tcpandip is offline Junior Member
    Join Date
    Jan 2012
    Posts
    2

    Default Re: Change Charts Colors

    This was my problem too. Charts.php wasn't included in my php graph.

    require_once('include/charts/Charts.php'); or custom directory

    If your dealing with a Sugar prone to customization's, chances you are, I could easily see this happening.

    It was, for the lack of a better word, a face-palm-moment for me.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 2011-05-16, 05:32 PM
  2. Charts and dashlets
    By michamamo2 in forum Developer Help
    Replies: 1
    Last Post: 2008-10-15, 12:57 PM
  3. View Change Log
    By markoa in forum Developer Help
    Replies: 0
    Last Post: 2007-10-13, 08:55 AM
  4. Replies: 2
    Last Post: 2007-04-18, 02:47 PM

Bookmarks

Posting Permissions

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