mirror of
https://github.com/seigler/neat-charts
synced 2025-07-27 01:16:09 +00:00
added prettier sample chart
This commit is contained in:
parent
cfa5fafa21
commit
603666e167
1 changed files with 3 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
PHP project to generate clean-looking SVG price charts
|
PHP project to generate clean-looking SVG price charts
|
||||||
|
|
||||||

|

|
||||||
7d of Dash price in Bitcoin from Poloniex.com
|
7d of Dash price in Bitcoin from Poloniex.com
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
@ -38,7 +38,7 @@ You are now ready to use NeatCharts.
|
||||||
|
|
||||||
### Install NeatCharts manually
|
### Install NeatCharts manually
|
||||||
|
|
||||||
Just download the folder `NeatCharts` (in `src`) and place it alongside your php file. Add the following at the top of your PHP file:
|
Download the folder `NeatCharts` (in `src`) and place it alongside your php file. Add the following at the top of your PHP file:
|
||||||
|
|
||||||
```php
|
```php
|
||||||
spl_autoload_extensions(".php");
|
spl_autoload_extensions(".php");
|
||||||
|
@ -57,6 +57,7 @@ $chart = new NeatCharts/LineChart($chartData, [ // all parameters optional
|
||||||
'labelColor'=>"#777",
|
'labelColor'=>"#777",
|
||||||
'smoothed'=>false
|
'smoothed'=>false
|
||||||
]);
|
]);
|
||||||
|
print '<?xml version="1.0" standalone="no"?>';
|
||||||
print $chart->render();
|
print $chart->render();
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue