From d17faefe885a3da78b2a9e6232d5ad43dcd080e3 Mon Sep 17 00:00:00 2001 From: Joshua Seigler Date: Tue, 7 Mar 2017 02:57:21 -0500 Subject: [PATCH] feat: add shadows to line charts --- src/NeatCharts/CandlestickChart.php | 2 +- src/NeatCharts/LineChart.php | 17 ++++++++++++++--- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/NeatCharts/CandlestickChart.php b/src/NeatCharts/CandlestickChart.php index 50f86a8..ecfc689 100644 --- a/src/NeatCharts/CandlestickChart.php +++ b/src/NeatCharts/CandlestickChart.php @@ -78,7 +78,7 @@ namespace NeatCharts { - + diff --git a/src/NeatCharts/LineChart.php b/src/NeatCharts/LineChart.php index 319bbe4..fa6ff17 100644 --- a/src/NeatCharts/LineChart.php +++ b/src/NeatCharts/LineChart.php @@ -14,7 +14,8 @@ namespace NeatCharts { 'xAxisEnabled' => true, 'yAxisZero' => false, 'filled' => false, - 'background' => 'none' + 'background' => 'none', + 'shadow' => 'none' ]; parent::setOptions($options); } @@ -119,9 +120,19 @@ namespace NeatCharts { - + '.( $this->options['shadow'] == 'none' ? '' : ' + + + + + + + + + + ').' - '.( $this->options['yAxisEnabled'] || $this->options['xAxisEnabled'] ? $gridLabelsXML : '').' + options['shadow'] == 'none' ? '' : ' filter="url(#shadow)"').'>'.( $this->options['yAxisEnabled'] || $this->options['xAxisEnabled'] ? $gridLabelsXML : '').'