From 3c25a9ba8d11a024267c80a5d2dd3e70e2ecdb6a Mon Sep 17 00:00:00 2001 From: FrancescoUK Date: Wed, 25 May 2016 22:59:39 +0100 Subject: [PATCH] Fixed currency support in pie chart (#342) --- application/views/reports/graphs/pie.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/application/views/reports/graphs/pie.php b/application/views/reports/graphs/pie.php index 68946e04b..65aba8931 100644 --- a/application/views/reports/graphs/pie.php +++ b/application/views/reports/graphs/pie.php @@ -24,7 +24,22 @@ plugins: [ Chartist.plugins.tooltip({ - currency: 'config->item('currency_symbol'); ?>' + transformTooltipTextFnc: function(value) { + config->item('currency_side') ) + { + ?> + return value + 'config->item('currency_symbol'); ?>'; + + return 'config->item('currency_symbol'); ?>' + value; + + } }) ] };