mirror of
https://github.com/seigler/neat-charts
synced 2025-07-26 17:06:09 +00:00
added default candlestick options to README, moved candle demo to end
This commit is contained in:
parent
acd456611e
commit
b243b5739b
2 changed files with 30 additions and 13 deletions
17
README.md
17
README.md
|
@ -62,6 +62,8 @@ print $chart->render();
|
||||||
In your HTML:
|
In your HTML:
|
||||||
`<img src="path to the PHP file">`
|
`<img src="path to the PHP file">`
|
||||||
|
|
||||||
|
There are more demos available in `demo.php` and `demo-as-image.php`.
|
||||||
|
|
||||||
## Available Options
|
## Available Options
|
||||||
|
|
||||||
### LineChart
|
### LineChart
|
||||||
|
@ -92,6 +94,21 @@ In your HTML:
|
||||||
| xAxisEnabled | false |
|
| xAxisEnabled | false |
|
||||||
| yAxisZero | true |
|
| yAxisZero | true |
|
||||||
|
|
||||||
|
### CandlestickChart
|
||||||
|
| Option | Default |
|
||||||
|
| --- | --- |
|
||||||
|
| width | 1200 |
|
||||||
|
| height | 300 |
|
||||||
|
| barColor | '#000' |
|
||||||
|
| risingFillColor | '#0D0' |
|
||||||
|
| fallingFillColor | '#D00' |
|
||||||
|
| markerColor | '#000' |
|
||||||
|
| labelColor | '#000' |
|
||||||
|
| fontSize | 15 |
|
||||||
|
| yAxisEnabled | true |
|
||||||
|
| xAxisEnabled | false |
|
||||||
|
| yAxisZero | 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/
|
||||||
|
|
26
demo.php
26
demo.php
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue