You are here

function flotStyle::__construct in Flot 7

Same name and namespace in other branches
  1. 6 flot.module \flotStyle::__construct()
4 calls to flotStyle::__construct()
flotStyleBar::__construct in ./flot.module
flotStyleLine::__construct in ./flot.module
flotStylePie::__construct in ./flot.module
flotStylePoint::__construct in ./flot.module
4 methods override flotStyle::__construct()
flotStyleBar::__construct in ./flot.module
flotStyleLine::__construct in ./flot.module
flotStylePie::__construct in ./flot.module
flotStylePoint::__construct in ./flot.module

File

./flot.module, line 335

Class

flotStyle
Style class for the flot API.

Code

function __construct() {
  $this->series = new stdClass();
  $this->series->lines = new stdClass();
  $this->series->bars = new stdClass();
  $this->series->points = new stdClass();
  $this->series->pie = new stdClass();

  // Use flot's default colors: $this->colors = array('#666', '#999', '#ccc');
  $this->shadowSize = 0;
  $this->grid = new stdClass();
  $this->grid->labelMargin = 0;
  $this->grid->tickColor = '#eee';
  $this->grid->backgroundColor = '#f8f8f8';
  $this->grid->borderWidth = 0;
  $this->grid->hoverable = TRUE;
  $this->grid->autoHighlight = TRUE;
  $this->grid->clickable = FALSE;
}