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
#1
Recolor Pie Chart
Okay, I'm stuck with recoloring the pie chart... I have navigated to /etc/lib/pChart2/sentora/z3DPie.php amd seen a list of color files. I then changed the default one to summer but the chart remains the same color.

Does anyone know how to change this?
--- Eclectic Digital ---
--- Aled Evans ---
Reply
Thanks given by:
#2
RE: Recolor Pie Chart
The color pallets of Sentora you can find at: etc/lib/pChart2/palettes/sentora.color
More info you can find at: http://wiki.pchart.net/doc.color.schemes.html

My Sentora DemoMy GithubAuxio Github
Zentora themeS-Type themeCstyleX theme
flat-color-iconssmall-n-flat-icons

Sentora's development takes way too long, so i'm transitioning to HestiaCP.
Reply
Thanks given by: aled2305
#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:


Forum Jump:


Users browsing this thread: 1 Guest(s)