You are here

public function FrxSVGGraph::render in Forena Reports 8

Render the graph.

Return value

string Rendered SVG.

Overrides RendererBase::render

File

src/FrxPlugin/Renderer/FrxSVGGraph.php, line 273
FrxSVGGraph php SVG Graph generator

Class

FrxSVGGraph
SVG Graphing Renderer

Namespace

Drupal\forena\FrxPlugin\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;
}