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
#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
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)