コード例 #1
0
 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->skipLeftScale = 0;
     // in case if left axis should be drawn but doesn't contain any data
     $this->skipRightScale = 0;
     // in case if right axis should be drawn but doesn't contain any data
     $this->ymin_itemid = 0;
     $this->ymax_itemid = 0;
     $this->legendOffsetY = 90;
     $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 = array(GRAPH_YAXIS_SIDE_LEFT => '', GRAPH_YAXIS_SIDE_RIGHT => '');
     $this->grid = array();
     // vertical & horizontal grids params
     $this->gridLinesCount = array();
     // How many grids to draw
     $this->gridStep = array();
     // Grid step
     $this->gridPixels = 25;
     // optimal grid size
     $this->gridPixelsVert = 40;
     //
 }
コード例 #2
0
 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
 }
コード例 #3
0
ファイル: CBarGraphDraw.php プロジェクト: TonywalkerCN/Zabbix
 public function __construct($type = GRAPH_TYPE_COLUMN)
 {
     parent::__construct($type);
     $this->background = false;
     $this->opacity = 15;
     // 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->drawLegend = 0;
     $this->series = array();
     $this->stacked = false;
     $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->shiftY = 46;
     $this->axisSideLeft = false;
     // do values for axis left/top persist
     $this->axisSideRight = false;
     // do 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 = 30;
     // optimal grid size
     $this->gridStep = array(GRAPH_YAXIS_SIDE_LEFT => null, GRAPH_YAXIS_SIDE_RIGHT => null);
     // set 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
     $this->minChartHeight = false;
 }
コード例 #4
0
ファイル: class.cchart.php プロジェクト: phedders/zabbix
 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
 }