Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1166875
XYSeriesDataSet.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Sep 23, 3:43 AM
Size
1 KB
Mime Type
text/x-php
Expires
Thu, Sep 25, 3:43 AM (13 h, 39 m)
Engine
blob
Format
Raw Data
Handle
755765
Attached To
rINP In-Portal
XYSeriesDataSet.php
View Options
<?php
/* Libchart - PHP chart library
* Copyright (C) 2005-2007 Jean-Marc Trémeaux (jm.tremeaux at gmail.com)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
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
;
}
}
Event Timeline
Log In to Comment