Graph::addDataset

Usage

void Graph::addDataset(array $data, [ string $label = '' ])

Description

Represents one point on the x-axis, and adds the necessary data / points to display on the graph.

Parameters

Parameter Required Type Description
$data Yes array One dimensional array of the points each line / bar are at. Only include one number if using ony one bar / line.
$label No string Label of the x-axis, generally the date.

See Also