pChart 2.x forum http://wiki.pchart.net/forum/ |
|
Change colour of the line http://wiki.pchart.net/forum/viewtopic.php?f=1&t=417 |
Page 1 of 1 |
Author: | Martin [ Sat Apr 23, 2011 10:43 pm ] |
Post subject: | Change colour of the line |
Hi, I have a line chart with some data. I've succeeded in changing the background, the border colour and so on, but I really do not understand how to change the actual line colour. Since I only have one line it can be static. The problem right now is that the default colour (which appears to be light green) does not suit my site. How would I do this? |
Author: | jean-damien [ Sun Apr 24, 2011 8:42 am ] |
Post subject: | Re: Change colour of the line |
Hi, You can call the setPalette() function. If your data serie is named "Serie1" and your pData object called "MyData", this will looks like : Code: $serieSettings = array("R"=>229,"G"=>11,"B"=>11); $MyData->setPalette("Serie1",$serieSettings); Kind regards, JD. |
Author: | Martin [ Sun Apr 24, 2011 10:55 am ] |
Post subject: | Re: Change colour of the line |
Thank you, that solved it! =] |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |