private function FrxSVGGraph::addColumn in Forena Reports 7.5
Add column for cross tabs.
2 calls to FrxSVGGraph::addColumn()
- FrxSVGGraph::generate in src/
Renderer/ FrxSVGGraph.php - Generate the template from the configuration.
- FrxSVGGraph::scrapeConfig in src/
Renderer/ FrxSVGGraph.php - Derive config variables from graph.
File
- src/
Renderer/ FrxSVGGraph.php, line 175 - FrxSVGGraph php SVG Graph generator
Class
Namespace
Drupal\forena\RendererCode
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,
);
}