You are here

private function FrxSVGGraph::seriesFromColumns in Forena Reports 7.5

Generate series from crosstab.

Parameters

unknown $config:

1 call to FrxSVGGraph::seriesFromColumns()
FrxSVGGraph::generate in src/Renderer/FrxSVGGraph.php
Generate the template from the configuration.

File

src/Renderer/FrxSVGGraph.php, line 474
FrxSVGGraph php SVG Graph generator

Class

FrxSVGGraph

Namespace

Drupal\forena\Renderer

Code

private function seriesFromColumns(&$config) {
  $series = array();
  foreach ($config['crosstab_columns'] as $key => $col) {
    if ($col['type'] == 'value') {
      $series[] = '{' . $key . '}';
    }
  }
  $config['series'] = $series;
}