You are here

static function FrxSVGGraph::graphOptions in Forena Reports 8

File

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

Class

FrxSVGGraph
SVG Graphing Renderer

Namespace

Drupal\forena\FrxPlugin\Renderer

Code

static function graphOptions() {
  $data = FrxSVGGraph::graphTypes();
  foreach ($data as $key => $value) {
    $type[$value['type']] = $value['type'];
    $style[$value['type']][$key] = $value['style'];
  }
  return array(
    'types' => $type,
    'styles' => $style,
  );
}