function pDraw::countDrawableSeries

5.x pDraw.class.php pDraw::countDrawableSeries()
1 call to pDraw::countDrawableSeries()
pDraw::drawBarChart in inc/pchart/pchart/class/pDraw.class.php

File

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

Class

pDraw

Code

function countDrawableSeries() 
 {
  $Results = 0;
  $Data = $this->DataSet->getData();

  foreach ($Data ["Series"] as $SerieName => $Serie) 
   {
    if ($Serie ["isDrawable"] == TRUE && $SerieName != $Data ["Abscissa"]) {
      $Results++;
    }
  }

  return ($Results);
}