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;