improve readme to show options and defaults

This commit is contained in:
Joshua Seigler 2016-07-03 03:53:26 -04:00
parent 7701635a6c
commit a582c2f97d

View file

@ -63,6 +63,20 @@ print $chart->render();
In your HTML: In your HTML:
`<img src="path to the PHP file">` `<img src="path to the PHP file">`
## Available Options
| Option | Default |
| --- | --- |
| width | 800 |
| height | 250 |
| lineColor | '#000' |
| markerColor | '#000' |
| labelColor | '#000' |
| smoothed | false |
| fontSize | 15 |
| yAxisEnabled | true |
| xAxisEnabled | false |
## Credits ## Credits
* Chart appearance based on advice found at http://vis4.net/blog/posts/doing-the-line-charts-right/ * Chart appearance based on advice found at http://vis4.net/blog/posts/doing-the-line-charts-right/