• Home
  • Shell
    • Emacs
    • Perl
    • screen
    • sed
  • Ubuntu
    • VNC
  • Web Development
    • Javascript
    • Joomla
    • MySQL
    • osTicket
  • Windows
    • Gimp

Posts tagged ValueG

Web Dev> pChart WriteValues text color

Jun07
2012
Written by Scott Rowley

Just a quick post since I started toying around with pChart 2.x to add emailed reports to my osTickets Reports MOD. This took me awhile to locate and that was including 20 minutes of googling failing me.

In order to change the font color of the WriteValues (the values that show up over your generated charts). You can modify the numbers in the following file
pChart/class/pRadar.class.php

$ValueR = isset($Format["ValueR"]) ? $Format["ValueR"] : 0;
$ValueG = isset($Format["ValueG"]) ? $Format["ValueG"] : 0;
$ValueB = isset($Format["ValueB"]) ? $Format["ValueB"] : 0;

Setting the above to 0’s instead of 255 will change the text from white to an easier to read black.

Posted in PHP, Web Development - Tagged Charts, Format, pChart, php, ValueB, ValueR, WriteValues

Corrections? Questions? Comments?

Find an error?
Everything work out great for you?
Have some feedback?
Like to see something added to the article?

PLEASE leave us a comment after the article and let us know how we are doing, or if something needs corrected, improved or clarified.

Thank you!
- The Management

Advertisement

Sudo Bash
By Geeks - For Geeks

Back to Top