function pDraw::scaleGetXSettings

5.x pDraw.class.php pDraw::scaleGetXSettings()
17 calls to pDraw::scaleGetXSettings()
pDraw::drawAreaChart in inc/pchart/pchart/class/pDraw.class.php
pDraw::drawBarChart in inc/pchart/pchart/class/pDraw.class.php
pDraw::drawBestFit in inc/pchart/pchart/class/pDraw.class.php
pDraw::drawDerivative in inc/pchart/pchart/class/pDraw.class.php
pDraw::drawFilledSplineChart in inc/pchart/pchart/class/pDraw.class.php

... See full list

File

inc/pchart/pchart/class/pDraw.class.php, line 3073

Class

pDraw

Code

function scaleGetXSettings() 
 {
  $Data = $this->DataSet->getData();
  foreach ($Data ["Axis"] as $AxisID => $Settings) 
   {
    if ($Settings ["Identity"] == AXIS_X) 
     {
      $Rows = $Settings ["Rows"];

      return (array($Settings ["Margin"], $Rows));
    }
  }
}