diff --git a/views/chart.php b/views/chart.php index 94b2415..027c9aa 100644 --- a/views/chart.php +++ b/views/chart.php @@ -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); diff --git a/views/index.php b/views/index.php index 1476066..9f90f01 100644 --- a/views/index.php +++ b/views/index.php @@ -87,7 +87,7 @@
Currency: anything active on Poloniex. Prices are all in bitcoin.
Timespan: 1y
, 30d
, 7d
, or 24h
.
Format: svg
(best) or png
.
- If you use svg format, you can add ?lineColor=
to the end of the URL for a custom plot-line color.
+ If you use svg format, you can add lineColor=
to the end of the URL for a custom plot-line color, or markerColor=
to change the color of the marker at the far right. Example: http://cryptohistory.com/charts/dark/maid-btc/7d/svg?lineColor=5593D7&markerColor=29578A