Name

clearchart -- Reset all values in the chart system.

Synopsis

bool chart->clearchart ( )

Description

This method clears all series and values from the chart system in preparation for a new chart. If you place multiple charts in a single PDF, you should call this method after each call to chart->place_chart()

Examples

$pdf->chart->place_chart($page, 10, 10, 300, 200, 'line');
$pdf->chart->clearchart();

See Also

History

This function was added in version 2.1

Bugs