This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Recolor Pie Chart
#3
RE: Recolor Pie Chart
To apply a color scheme to your chart, you can use the loadPalette function. This function must be called before any charting function.
1.
/* Create the pData object */
2.
$MyData = new pData();
3.

4.
/* Populate some data */
5.
$MyData->addPoints(array(1,2,3,4),"My Serie 1");
6.

7.
/* Will replace the whole color scheme by the "light" palette */
8.
$MyData->loadPalette("palettes/light.color", TRUE);

..then draw your charts.
____________________________________
Optics 4 birding
Reply
Thanks given by:


Messages In This Thread
Recolor Pie Chart - by aled2305 - 01-28-2015, 12:09 AM
RE: Recolor Pie Chart - by Ron-e - 01-28-2015, 01:27 AM
RE: Recolor Pie Chart - by stelabentley - 02-05-2021, 03:17 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)