PHP Class FlotChart

Afficher le fichier Open project: openeyes/openeyes Class Usage Examples

Méthodes publiques

Свойство Type Description
$chart_id
$legend_id

Protected Properties

Свойство Type Description
$has_data
$options
$point_labels
$series
$x_max
$x_min
$yaxis_map

Méthodes publiques

Méthode Description
addPoint ( string $series_name, float $x, float $y, string $label = null ) : FlotChart Add a point to the specified data series (creating it if it doesn't exist).
configureChart ( array $config ) : FlotChart Apply configuration to the chart as a whole.
configureSeries ( string $series_name, array $config ) : FlotChart Configure a data series, creating it if it doesn't exist.
configureXAxis ( array $config = [] ) : FlotChart Configure the X axis.
configureYAxis ( string $axis_name, array $config = [] ) : FlotChart Add and/or configure a Y axis.
getXMax ( ) : float Get the highest X value added to the graph so far (or null if none).
getXMin ( ) : float | null Get the lowest X value added to the graph so far (or null if none).
hasData ( ) : boolean Whether there are any points in the graph yet.
run ( ) Render the chart.

Méthodes protégées

Méthode Description
initSeries ( $series_name )

Method Details

addPoint() public méthode

Add a point to the specified data series (creating it if it doesn't exist).
public addPoint ( string $series_name, float $x, float $y, string $label = null ) : FlotChart
$series_name string
$x float
$y float
$label string
Résultat FlotChart

configureChart() public méthode

Apply configuration to the chart as a whole.
public configureChart ( array $config ) : FlotChart
$config array
Résultat FlotChart

configureSeries() public méthode

Configure a data series, creating it if it doesn't exist.
public configureSeries ( string $series_name, array $config ) : FlotChart
$series_name string
$config array
Résultat FlotChart

configureXAxis() public méthode

Configure the X axis.
public configureXAxis ( array $config = [] ) : FlotChart
$config array
Résultat FlotChart

configureYAxis() public méthode

Add and/or configure a Y axis.
public configureYAxis ( string $axis_name, array $config = [] ) : FlotChart
$axis_name string
$config array
Résultat FlotChart

getXMax() public méthode

Get the highest X value added to the graph so far (or null if none).
public getXMax ( ) : float
Résultat float

getXMin() public méthode

Get the lowest X value added to the graph so far (or null if none).
public getXMin ( ) : float | null
Résultat float | null

hasData() public méthode

Whether there are any points in the graph yet.
public hasData ( ) : boolean
Résultat boolean

initSeries() protected méthode

protected initSeries ( $series_name )

run() public méthode

Render the chart.
public run ( )

Property Details

$chart_id public_oe property

public $chart_id

$has_data protected_oe property

protected $has_data

$legend_id public_oe property

public $legend_id

$options protected_oe property

protected $options

$point_labels protected_oe property

protected $point_labels

$series protected_oe property

protected $series

$x_max protected_oe property

protected $x_max

$x_min protected_oe property

protected $x_min

$yaxis_map protected_oe property

protected $yaxis_map