You are here

private function FrxSVGGraph::keyFromColumns in Forena Reports 7.5

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

File

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

Class

FrxSVGGraph

Namespace

Drupal\forena\Renderer

Code

private function keyFromColumns(&$config) {
  $key = '';
  foreach ($config['crosstab_columns'] as $k => $col) {
    if ($col['type'] == 'heading') {
      $key = trim($key . ' {' . $k . '}');
    }
  }
  $config['key'] = $key;
}