Jump to content
  • 0

Bandwidth Pie Colour


Evaske

Question

Hey,

 

Wondering if one of you can point me to where the client area -> manage service bandwidth/disk usage pie charts get their colour from as the default green doesn't fit in with my design.

 

Guessing it's a JS file somewhere beings as it's using the Canvas and it's not being set with CSS.

 

Nevermind... realised it's in a script at the bottom of the page :)

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Hello mate,

 

I just mucked about with mine to help you and found out how to do this for you.

 

/components/modules/cpanel/views/default/tab_client_stats.pdt

 

You should see this:

seriesColors:  ["#a80000", "#1d80b3"],

 the second value is the green I edited that code to include blue so if your searching it all don't include the last one.

 

 

Now that changes the colour of the background, but the grey text doesn't fit in on there, so go to:

 

/vendors/jqplot/jquery.jqplot.min.css

 

and add this code to the bottom of it.

.jqplot-target .jqplot-data-label {color: #ffffff !important;}

 That makes the font white.

 

 

Preview:

charts.PNG

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...