Name

setcolor -- Configure colors for chart.

Synopsis

bool chart->setcolor ( string setting, float red, float green, float blue )

Description

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

Examples

// set the background to dark green
$pdf->chart->setcolor('background', 0, .5, 0);
$pdf->chart->place_chart($page, 10, 10, 300, 200, 'line');

See Also

History

This function was added in version 2.1.

Bugs

Only 'background' is used at this time. This function does little sanity checking, it's possible to set invalid defaults with no error reported.