From 59a2cbecba5230d9971e7904d6cc52e7f91b3553 Mon Sep 17 00:00:00 2001 From: Nicolas Hohm Date: Sat, 17 Jan 2015 12:17:06 +0100 Subject: [PATCH] add example code --- example.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 example.php diff --git a/example.php b/example.php new file mode 100644 index 0000000..8cb6301 --- /dev/null +++ b/example.php @@ -0,0 +1,25 @@ +setVLabel('My Vlabel') + ->setCategory('My Category'); + + +$datasource = (new Datasource('mydata')) + ->setLabel('My Data') + ->setValue('foo'); + + +$graph->getDatasourceSet()->append($datasource); + + +echo 'Config:'.PHP_EOL; +echo $graph->getConfig().PHP_EOL; +echo PHP_EOL; +echo 'Values:'.PHP_EOL; +echo $graph->getDatasourceSet()->getValues().PHP_EOL;