mirror of
https://github.com/seigler/neat-charts
synced 2025-07-27 09:26:10 +00:00
fixed namespace
This commit is contained in:
parent
f98d0a4b08
commit
d61f39fcfe
1 changed files with 3 additions and 3 deletions
|
@ -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",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue