Beispiel 20 - EmptyGraph

Quellcode zum Beispiel

<?php
require '../../svggraph/autoloader.php';
$settings['auto_fit'] = true;
$settings['shape'] = array(
  'circle',
  'cx' => 30,
  'cy' => 40,
  'r' => 20
);
$settings['label'] = array(
      200, 100,
      "Auf Grafikposition (200,100)",
      'type' => 'bubble',
      'fill' => array('#ff6','#ffc','#ff6','v'),
      'round' => 10
    );

$settings['graph_title'] = "Grafik vom Typ EmptyGraph\nmit Shapes und Label";
$settings['graph_title_font_size'] = '15';
$graph = new Goat1000\SVGGraph\SVGGraph(640, 480, $settings);
$graph->Render('EmptyGraph');
?>