You are here

function flotPie::__construct in Flot 7

Overrides flot::__construct

File

./flot.module, line 438

Class

flotPie
Basic pie style class for the flot.

Code

function __construct($settings = NULL) {
  $this->label = new stdClass();
  $this->label->background = new stdClass();
  $this->show = TRUE;
  $this->radius = 1;
  $this->label->show = TRUE;
  $this->label->radius = 2 / 3;
  $this->label->threshold = 0.1;
  $this->label->background->opacity = 1;
  parent::__construct($settings);
}