mirror of
https://github.com/seigler/cryptohistory.org
synced 2025-07-27 01:36:11 +00:00
explain markerColor, fix PNG chart options
This commit is contained in:
parent
7546d31a60
commit
c79e3b2267
2 changed files with 3 additions and 1 deletions
|
@ -132,6 +132,8 @@ function renderChart(
|
|||
|
||||
if ($format == 'svg') {
|
||||
$chartOptions = array_replace($themes[$theme], ['lineColor'=>'@lineColor', 'markerColor'=>'@markerColor']);
|
||||
} else {
|
||||
$chartOptions = $themes[$theme];
|
||||
}
|
||||
|
||||
$poloniexChart = new NeatCharts\LineChart($chartData, $chartOptions);
|
||||
|
|
|
@ -87,7 +87,7 @@
|
|||
<p>Currency: anything active on Poloniex. Prices are all in bitcoin.</p>
|
||||
<p>Timespan: <code>1y</code>, <code>30d</code>, <code>7d</code>, or <code>24h</code>.</p>
|
||||
<p>Format: <code>svg</code> (best) or <code>png</code>.<br>
|
||||
If you use svg format, you can add <code>?lineColor=</code> to the end of the URL for a custom plot-line color.
|
||||
If you use svg format, you can add <code>lineColor=</code> to the end of the URL for a custom plot-line color, or <code>markerColor=</code> to change the color of the marker at the far right. Example: <code><a href="/charts/dark/maid-btc/7d/svg?lineColor=5593D7&markerColor=29578A">http://cryptohistory.com/charts/dark/maid-btc/7d/svg?lineColor=5593D7&markerColor=29578A</a></code>
|
||||
</p>
|
||||
</section>
|
||||
<section>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue