You are here

public function FrxSVGGraph::render in Forena Reports 7.5

Render the graph.

Return value

Ambigous <string, mixed>

Overrides RendererBase::render

File

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

Class

FrxSVGGraph

Namespace

Drupal\forena\Renderer

Code

public function render() {

  // Get data from source
  $output = '';
  $this
    ->prepareGraph();
  $type = $this->graphOptions['type'];
  if ($this->graphData && $this
    ->validSeries()) {
    $output = $this
      ->renderChart($type);
  }
  return $output;
}