You are here

private function FrxSVGGraph::addColumn in Forena Reports 8

Add column for cross tabs.

2 calls to FrxSVGGraph::addColumn()
FrxSVGGraph::generate in src/FrxPlugin/Template/FrxSVGGraph.php
FrxSVGGraph::scrapeConfig in src/FrxPlugin/Template/FrxSVGGraph.php
Derive config variables from graph.

File

src/FrxPlugin/Template/FrxSVGGraph.php, line 176
FrxSVGGraph php SVG Graph generator

Class

FrxSVGGraph

Namespace

Drupal\forena\Template

Code

private function addColumn($type, $token, $label, &$config) {
  $key = trim($token, '{}');
  $this->weight++;
  $config['crosstab_columns'][$key] = array(
    'contents' => $token,
    'label' => $label,
    'type' => $type,
    'weight' => $this->weight,
  );
}