Sentora Support Forums
Recolor Pie Chart - Printable Version

+- Sentora Support Forums (https://senforums.mach-hosting.com)
+-- Forum: Sentora Forum Archives (https://senforums.mach-hosting.com/forumdisplay.php?fid=5)
+--- Forum: Sentora Public Support Forums v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=32)
+---- Forum: Template Support v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=37)
+---- Thread: Recolor Pie Chart (/showthread.php?tid=919)



Recolor Pie Chart - aled2305 - 01-28-2015

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?


RE: Recolor Pie Chart - Ron-e - 01-28-2015

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


RE: Recolor Pie Chart - stelabentley - 02-05-2021

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