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
[Not Solved] 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 ---
Thanks given by:
[Not Solved] 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:

My Sentora DemoMy GithubAuxio Github
Zentora themeS-Type themeCstyleX theme

Sentora's development takes way too long, so i'm transitioning to HestiaCP.
Thanks given by: aled2305
[Not Solved] 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.
/* Create the pData object */
$MyData = new pData();

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

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

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

Forum Jump:

Users browsing this thread: 2 Guest(s)