renamed chart formatter function
This commit is contained in:
parent
63dea26695
commit
5f476a9de6
@ -304,8 +304,8 @@ abstract class Report
|
||||
|
||||
public function setChartLabelFormatter()
|
||||
{
|
||||
$this->chart['bar']['yaxis']['labels']['formatter'] = $this->getFormatLabel();
|
||||
$this->chart['donut']['yaxis']['labels']['formatter'] = $this->getFormatLabel('percent');
|
||||
$this->chart['bar']['yaxis']['labels']['formatter'] = $this->getChartLabelFormatter();
|
||||
$this->chart['donut']['yaxis']['labels']['formatter'] = $this->getChartLabelFormatter('percent');
|
||||
}
|
||||
|
||||
public function setYear()
|
||||
|
@ -95,7 +95,7 @@ trait Charts
|
||||
return $chart;
|
||||
}
|
||||
|
||||
public function getFormatLabel($type = 'money', $position = null)
|
||||
public function getChartLabelFormatter($type = 'money', $position = null)
|
||||
{
|
||||
$label = '';
|
||||
$decimal_mark = str_replace("'", "\\'", config('money.' . setting('default.currency') . '.decimal_mark'));
|
||||
|
@ -56,7 +56,7 @@ class CashFlow extends Widget
|
||||
],
|
||||
'yaxis' => [
|
||||
'labels' => [
|
||||
'formatter' => $this->getFormatLabel(),
|
||||
'formatter' => $this->getChartLabelFormatter(),
|
||||
],
|
||||
],
|
||||
];
|
||||
|
@ -51,7 +51,7 @@ class ProfitLoss extends Widget
|
||||
|
||||
'yaxis' => [
|
||||
'labels' => [
|
||||
'formatter' => $this->getFormatLabel(),
|
||||
'formatter' => $this->getChartLabelFormatter(),
|
||||
],
|
||||
],
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user