You are here

class flotData in Flot 7

Same name and namespace in other branches
  1. 6 flot.module \flotData

Data class for the flot API.

Make some nested objects to keep things simple when creating a data series.

Hierarchy

Expanded class hierarchy of flotData

File

./flot.module, line 307

View source
class flotData {
  public $data;
  public $series;
  function __construct($data) {
    $this->data = $data;
    $this->series = new stdClass();
    $this->series->lines = new stdClass();
    $this->series->bars = new stdClass();
    $this->series->points = new stdClass();
    $this->series->pie = new stdClass();
    $this->grid = new stdClass();
  }

}

Members