You are here

function flotStyle::__construct in Flot 6

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

File

./flot.module, line 139

Class

flotStyle
Style class for the flot API.

Code

function __construct() {
  $this->lines = new StdClass();
  $this->bars = new StdClass();
  $this->points = new StdClass();
  $this->lines->show = FALSE;
  $this->bars->show = FALSE;
  $this->points->show = FALSE;
  $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;
}