. * */ defined('FULL_PATH') or die('restricted access!'); /** * This dataset comprises several series of points and is used to plot multiple lines charts. * Each serie is a XYDataSet. * * @author Jean-Marc Trémeaux (jm.tremeaux at gmail.com) * Created on 20 july 2007 */ class LibchartXYSeriesDataSet extends LibchartDataSet { /** * List of titles */ private $titleList; /** * List of XYDataSet. */ private $serieList; /** * Constructor of XYSeriesDataSet. * */ public function __construct() { $this->titleList = array(); $this->serieList = array(); } /** * Add a new serie to the dataset. * * @param string Title (label) of the serie. * @param XYDataSet Serie of points to add */ public function addSerie($title, $serie) { array_push($this->titleList, $title); array_push($this->serieList, $serie); } /** * Getter of titleList. * * @return List of titles. */ public function getTitleList() { return $this->titleList; } /** * Getter of serieList. * * @return List of series. */ public function getSerieList() { return $this->serieList; } }