<embed src="/charts/Beispiele/05-balken-vertikal-muster-titel.php" type="image/svg+xml">
<?php
//Beispiel siehe http://www.goat1000.com/svggraph-bar.php
require '../../svggraph/autoloader.php';
$settings = array(
'auto_fit' => true,
'back_colour' => '#eee',
'stroke_colour' => '#000',
'back_stroke_width' => 0,
'back_stroke_colour' => '#eee',
'graph_title' => 'The graph title',
'graph_title_position' => 'bottom',//right, left
'graph_title_font_weight' => 'bold',
'graph_title_font' => 'Georgia',
'graph_title_font_size' => 15,
'graph_title_colour' => '#900',
'graph_title_space' => 20,
'axis_colour' => '#333',
'axis_overlap' => 2,
'axis_font' => 'Arial',
'axis_font_size' => 10,
'grid_colour' => '#666',
'label_colour' => '#000',
'pad_right' => 20, //Abstand der gesamten Grafik
'pad_left' => 20,
'link_base' => '/',
'link_target' => '_top',
'minimum_grid_spacing' => 20
);
$values = array(
array('Dough' => 30, 'Ray' => 50, 'Me' => 40, 'So' => 25, 'Far' => 45, 'Lard' => 35),
array('Dough' => 20, 'Ray' => 30, 'Me' => 20, 'So' => 15, 'Far' => 25, 'Lard' => 35,
'Tea' => 45)
);
$colours = array(array('red','yellow'), array('blue','white'));
$links = array('Dough' => 'http://google.de', 'Ray' => 'index.html',
'Me' => 'index.html');
$graph = new Goat1000\SVGGraph\SVGGraph(400, 300, $settings);
// $graph->colours = $colours;
$graph->colours($colours);
$graph->Values($values);
$graph->Links($links);
$graph->Render('BarGraph');
?>