Skip to content

Commit

Permalink
Fixes #1068 by changing the displayed item to be the value rather tha…
Browse files Browse the repository at this point in the history
…n the key.
  • Loading branch information
paulgodley committed Mar 10, 2016
1 parent 97ae176 commit 57cf6e4
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -335,8 +335,8 @@ protected function prepareChartData($data,$currency_symbol, $thousands_symbol)
foreach($data as $i)
{
//$chart['labelsAndValues'][]=$i['key'].' ('.$currency.(int)$i['total'].')';
$chart['labelsAndValues'][]=$this->resizeLabel($i['key']).' ('.$currency_symbol.(int)$i['total'].$thousands_symbol.')';
$chart['labels'][]=$i['key'];
$chart['labelsAndValues'][]=$this->resizeLabel($i['value']).' ('.$currency_symbol.(int)$i['total'].$thousands_symbol.')';
$chart['labels'][]=$i['value'];
$chart['data'][]=(int)$i['total'];
$total+=(int)$i['total'];
}
Expand Down

0 comments on commit 57cf6e4

Please sign in to comment.