public function __construct($type = GRAPH_TYPE_PIE) { parent::__construct($type); $this->background = false; $this->sum = false; $this->exploderad = 1; $this->exploderad3d = 3; $this->graphheight3d = 12; $this->shiftlegendright = 17 * 7 + 7 + 10; // count of static chars * px/char + for color rectangle + space $this->drawlegendallow = 1; }
public function __construct($type = GRAPH_TYPE_COLUMN) { parent::__construct($type); $this->background = false; $this->opacity = 30; // bar/column opacity $this->sum = false; $this->shiftlegendright = 0; // count of static chars * px/char + for color rectangle + space $this->shiftCaption = 0; $this->maxCaption = 0; $this->drawlegendallow = 0; $this->series = array(); $this->periodCaption = array(); $this->seriesLegend = array(); $this->seriesColor = array(); $this->seriesCount = 0; $this->columnWidth = 10; // bar/column width per serie $this->seriesWidth = 10; // overal per serie bar/column width $this->seriesDistance = 10; $this->axisSideLeft = false; // Does values for axis left/top persist $this->axisSideRight = false; // Does values for axis right/bottom persist $this->xLabel = null; $this->yLabel = null; $this->yaxismin = array(GRAPH_YAXIS_SIDE_LEFT => 0, GRAPH_YAXIS_SIDE_RIGHT => 0); $this->yaxismax = array(GRAPH_YAXIS_SIDE_LEFT => 100, GRAPH_YAXIS_SIDE_RIGHT => 100); $this->minValue = array(GRAPH_YAXIS_SIDE_LEFT => 0, GRAPH_YAXIS_SIDE_RIGHT => 0); $this->maxValue = array(GRAPH_YAXIS_SIDE_LEFT => null, GRAPH_YAXIS_SIDE_RIGHT => null); $this->gridLinesCount = NULL; // How many grids to draw $this->gridPixels = 40; // optimal grid size $this->gridStep = array(GRAPH_YAXIS_SIDE_LEFT => null, GRAPH_YAXIS_SIDE_RIGHT => null); // seted value $this->side_values = array(GRAPH_YAXIS_SIDE_LEFT => ITEM_VALUE_TYPE_UINT64, GRAPH_YAXIS_SIDE_RIGHT => ITEM_VALUE_TYPE_UINT64); // 0 - float, 3 - uint $this->column = null; $this->units = array(GRAPH_YAXIS_SIDE_LEFT => '', GRAPH_YAXIS_SIDE_RIGHT => ''); // Units for values }
public function __construct($type = GRAPH_TYPE_NORMAL) { parent::__construct($type); $this->yaxismin = null; $this->yaxismax = null; $this->triggers = array(); $this->ymin_type = GRAPH_YAXIS_TYPE_CALCULATED; $this->ymax_type = GRAPH_YAXIS_TYPE_CALCULATED; $this->yaxisright = 0; $this->yaxisleft = 0; $this->ymin_itemid = 0; $this->ymax_itemid = 0; $this->percentile = array('left' => array('percent' => 0, 'value' => 0), 'right' => array('percent' => 0, 'value' => 0)); $this->m_showWorkPeriod = 1; $this->m_showTriggers = 1; $this->zero = array(); $this->graphorientation = ''; $this->gridLinesCount = NULL; // How many grids to draw $this->gridPixels = 40; // optimal grid size }