fixed namespace

This commit is contained in:
Joshua Seigler 2016-06-29 08:34:10 -04:00
parent f98d0a4b08
commit d61f39fcfe

View file

@ -18,14 +18,14 @@ In your PHP file:
<?php <?php
Header('Content-type: image/svg+xml; charset=utf-8'); Header('Content-type: image/svg+xml; charset=utf-8');
Header('Content-Disposition: inline; filename="chart-' . date('Y-m-d\THisT') . '.svg"'); Header('Content-Disposition: inline; filename="chart-' . date('Y-m-d\THisT') . '.svg"');
include 'buffer.php'; require 'buffer.php'; // feel free to use your own caching instead of this one in the demo folder
include 'NeatChart/LineChart.php'; require 'NeatCharts/LineChart.php'; // better to use composer, require "seigler/NeatCharts".
/* /*
your code here to populate $chartData your code here to populate $chartData
*/ */
$chart = new NeatChart/LineChart($chartData, [ // all parameters optional $chart = new NeatCharts/LineChart($chartData, [ // all parameters optional
'width'=>800, 'width'=>800,
'height'=>250, 'height'=>250,
'lineColor'=>"#1C75BC", 'lineColor'=>"#1C75BC",