You are here

function flotData::__construct in Flot 7

Same name and namespace in other branches
  1. 6 flot.module \flotData::__construct()

File

./flot.module, line 312

Class

flotData
Data class for the flot API.

Code

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();
}