setcolor -- Configure colors for chart.
bool chart->setcolor ( string setting, float red, float green, float blue )
This method sets color values for the overall chart. The red, green, and blue values are bewteen 0 and 1, with 0 representing none of that color, and 1 representing full intensity.
Available defaults at this time are: background, border, hlabel, vlabel, hgrade, vgrade
// set the background to dark green $pdf->chart->setcolor('background', 0, .5, 0); $pdf->chart->place_chart($page, 10, 10, 300, 200, 'line');
This function was added in version 2.1.
Only 'background' is used at this time. This function does little sanity checking, it's possible to set invalid defaults with no error reported.