From c79e3b22678d50f26bba68feceaf433c3e7ab0b5 Mon Sep 17 00:00:00 2001 From: Joshua Seigler Date: Sun, 3 Jul 2016 04:32:38 -0400 Subject: [PATCH] explain markerColor, fix PNG chart options --- views/chart.php | 2 ++ views/index.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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