Lines Matching refs:this

140 		$this->flagDefaults = array(
191 if (!in_array($key, $this->validFlags))
205 list($w, $h) = $this->_trimArray(explode('x', $val, 2));
227 $flags[$key] = $this->_trimArray(explode(',', $flags[$key]));
230 if (!in_array($val, $this->validTypes))
242 $flags[$key] = $this->_parseRGB($val);
252 $flags[$key] = $this->_trimArray(explode(',', $flags[$key]));
254 $flags[$key][$i] = $this->_trimArray(explode('|', $flags[$key][$i]));
270 list($color, $shades) = $this->_trimArray(explode('@', $val, 2));
271 $rgb = $this->_parseRGB($color);
282 foreach ($this->flagDefaults as $key => $val) {
287 $this->flags = $flags;
298 $this->data = $data;
314 $csv = $this->_parseCsv($this->data);
319 $pdata = $this->_createGraphData($csv);
324 switch ($this->flags['type']) {
333 $chart = $this->_createLineGraph($pdata);
338 $chart = $this->_createPieGraph($pdata);
363 if (isset($this->flags['XAxisName']))
364 $pdata->SetXAxisName($this->flags['XAxisName']);
365 if (isset($this->flags['YAxisName']))
366 $pdata->SetYAxisName($this->flags['YAxisName']);
369 if (isset($this->flags['XAxisUnit']))
370 $pdata->SetXAxisUnit($this->flags['XAxisUnit']);
371 if (isset($this->flags['YAxisUnit']))
372 $pdata->SetYAxisUnit($this->flags['YAxisUnit']);
375 if (isset($this->flags['XAxisFormat']))
376 $pdata->SetXAxisFormat($this->flags['XAxisFormat']);
377 if (isset($this->flags['YAxisFormat']))
378 $pdata->SetYAxisFormat($this->flags['YAxisFormat']);
384 if (isset($this->flags['legendEntries'][$serie-1]))
385 $pdata->SetSerieName($this->flags['legendEntries'][$serie-1], 'Serie' . $serie);
391 if (isset($this->flags['labelSerie'])) {
392 $labelSerie = 'Serie' . $this->flags['labelSerie'];
409 $pchart = new pChart($this->flags['size']['width'], $this->flags['size']['height']);
410 …$pchart->drawBackground($this->flags['bgcolor'][0], $this->flags['bgcolor'][1], $this->flags['bgco…
413 if (isset($this->flags['bggradient']))
414 …AreaGradient($this->flags['bggradient']['color'][0], $this->flags['bggradient']['color'][1], $this
417 if (isset($this->flags['palette']))
418 $pchart->loadColorPalette($this->flags['palette']);
421 …$pchart->setFontProperties($this->flags['fontLegend']['name'], $this->flags['fontLegend']['size']);
423 if ($this->flags['legend'])
427 …$pchart->setFontProperties($this->flags['fontDefault']['name'], $this->flags['fontDefault']['size'…
428 …$pchart->setGraphArea(50, 30, $this->flags['size']['width'] - $legendSize[0] - 40, $this->flags['s…
429 …$pchart->drawGraphArea($this->flags['graphColor'][0], $this->flags['graphColor'][1], $this->flags[…
432 if (isset($this->flags['graphGradient']))
433 …Gradient($this->flags['graphGradient']['color'][0], $this->flags['graphGradient']['color'][1], $th…
436 if ($this->flags['legend']) {
437 …$pchart->setFontProperties($this->flags['fontLegend']['name'], $this->flags['fontLegend']['size']);
438this->flags['size']['width'] - $legendSize[0] - 15, 30, $pdata->GetDataDescription(), $this->flags…
439 …$pchart->setFontProperties($this->flags['fontDefault']['name'], $this->flags['fontDefault']['size'…
443 switch ($this->flags['type']) {
446 …SCALE_START0, $this->flags['scaleColor'][0], $this->flags['scaleColor'][1], $this->flags['scaleCol…
449 …ADDALLSTART0, $this->flags['scaleColor'][0], $this->flags['scaleColor'][1], $this->flags['scaleCol…
452 …SCALE_START0, $this->flags['scaleColor'][0], $this->flags['scaleColor'][1], $this->flags['scaleCol…
457 if ($this->flags['grid'])
458 $pchart->drawGrid(4, true, 230, 230, 230, $this->flags['alpha']);
461 if (isset($this->flags['thresholds'])) {
462 foreach ($this->flags['thresholds'] as $threshold) {
468 …if ($this->flags['shadow'] && in_array($this->flags['type'], array('line', 'lineFilled', 'cubic', …
469 …$pchart->setShadowProperties(3,3,$this->flags['shadowColor'][0],$this->flags['shadowColor'][1],$th…
470 if ($this->flags['dots'])
471 $pchart->drawPlotGraph($pdata->GetData(), $pdata->GetDataDescription(), $this->flags['dots']);
472 switch ($this->flags['type']) {
477 …$pchart->drawFilledLineGraph($pdata->GetData(), $pdata->GetDataDescription(), $this->flags['alpha'…
483 …$pchart->drawFilledCubicCurve($pdata->GetData(), $pdata->GetDataDescription(), 0.1, $this->flags['…
486 …rawBarGraph($pdata->GetData(), $pdata->GetDataDescription(), $this->flags['shadow'], $this->flags[…
489 …$pchart->drawStackedBarGraph($pdata->GetData(), $pdata->GetDataDescription(), $this->flags['alpha'…
492 …$pchart->drawOverlayBarGraph($pdata->GetData(), $pdata->GetDataDescription(), $this->flags['alpha'…
498 if (isset($this->flags['graphLabels'])) {
499 …$pchart->setFontProperties($this->flags['fontLegend']['name'], $this->flags['fontLegend']['size'])…
500 foreach($this->flags['graphLabels'] as $label) {
506 if (isset($this->flags['title'])) {
507 $pchart->setFontProperties($this->flags['fontTitle']['name'], $this->flags['fontTitle']['size']);
508 …wTitle(50, 20, $this->flags['title'], $this->flags['titleColor'][0], $this->flags['titleColor'][1]…
523 $pchart = new pChart($this->flags['size']['width'], $this->flags['size']['height']);
524 …$pchart->drawBackground($this->flags['bgcolor'][0], $this->flags['bgcolor'][1], $this->flags['bgco…
527 if (isset($this->flags['palette']))
528 $pchart->loadColorPalette($this->flags['palette']);
531 …$pchart->setFontProperties($this->flags['fontLegend']['name'], $this->flags['fontLegend']['size']);
533 if ($this->flags['legend'])
538 (int)(($this->flags['size']['width'] - $legendSize[0] - 20) / 2),
539 (int)($this->flags['size']['height'] / 2),
542 if ($this->flags['pieExploded'])
546 …$pchart->setFontProperties($this->flags['fontDefault']['name'], $this->flags['fontDefault']['size'…
547 if ($this->flags['legend']) {
548 …$pchart->setFontProperties($this->flags['fontLegend']['name'], $this->flags['fontLegend']['size']);
549this->flags['size']['width'] - $legendSize[0] - 15, 30, $pdata->GetData(), $pdata->GetDataDescript…
550 …$pchart->setFontProperties($this->flags['fontDefault']['name'], $this->flags['fontDefault']['size'…
555 if ($this->flags['pieLabels'] && $this->flags['piePercentages'])
557 else if ($this->flags['pieLabels'])
559 else if ($this->flags['piePercentages'])
561 if ($this->flags['shadow'])
562 …$pchart->setShadowProperties(3,3,$this->flags['shadowColor'][0],$this->flags['shadowColor'][1],$th…
563 switch ($this->flags['type']) {
565 if ($this->flags['pieExploded']) {
566 …->GetDataDescription(), $center[0], $center[1], $radius, $labeltype, 10, $this->flags['decimals']);
568 …scription(), $center[0], $center[1], $radius, $labeltype, 255, 255, 255, $this->flags['decimals'])…
572 …0], $center[1], $radius, $labeltype, true, 60, 20, (($this->flags['pieExploded']) ? 10 : 0), $this
578 if (isset($this->flags['title'])) {
579 $pchart->setFontProperties($this->flags['fontTitle']['name'], $this->flags['fontTitle']['size']);
580 …wTitle(50, 20, $this->flags['title'], $this->flags['titleColor'][0], $this->flags['titleColor'][1]…
581 …$pchart->setFontProperties($this->flags['fontLegend']['name'], $this->flags['fontLegend']['size'])…
604 $values = $this->_trimArray(explode(',', $row));