. * */ /** * Configuration attributes of the chart. * * @author Jean-Marc Trémeaux (jm.tremeaux at gmail.com) */ class ChartConfig { /** * Use several colors for a single data set chart (as if it was a multiple data set). * * @var Boolean */ private $useMultipleColor; /** * Show caption on individual data points. * * @var Boolean */ private $showPointCaption; /** * Sort data points (only pie charts). * * @var Boolean */ private $sortDataPoint; /** * Creates a new ChartConfig with default options. */ public function ChartConfig() { $this->useMultipleColor = false; $this->showPointCaption = true; $this->sortDataPoint = true; } /** * If true the chart will use several colors for a single data set chart * (as if it was a multiple data set). * * @param $useMultipleColor Use several colors : boolean */ public function setUseMultipleColor($useMultipleColor) { $this->useMultipleColor = $useMultipleColor; } /** * If true the chart will use several colors for a single data set chart * (as if it was a multiple data set). * * @return $useMultipleColor Use several colors : boolean */ public function getUseMultipleColor() { return $this->useMultipleColor; } /** * Set the option to show caption on individual data points. * * @param $showPointCaption Show caption on individual data points : boolean */ public function setShowPointCaption($showPointCaption) { $this->showPointCaption = $showPointCaption; } /** * Get the option to show caption on individual data points. * * @return Show caption on individual data points : boolean */ public function getShowPointCaption() { return $this->showPointCaption; } /** * Set the option to sort data points (only pie charts). * * @param $sortDataPoint Sort data points : boolean */ public function setSortDataPoint($sortDataPoint) { $this->sortDataPoint = $sortDataPoint; } /** * Get the option to sort data points (only pie charts). * * @return Sort data points : boolean */ public function getSortDataPoint() { return $this->sortDataPoint; } } ?>