renamed chart formatter function

This commit is contained in:
Denis Duliçi 2022-08-13 14:57:24 +03:00
parent 63dea26695
commit 5f476a9de6
4 changed files with 5 additions and 5 deletions

View File

@ -304,8 +304,8 @@ abstract class Report
public function setChartLabelFormatter() public function setChartLabelFormatter()
{ {
$this->chart['bar']['yaxis']['labels']['formatter'] = $this->getFormatLabel(); $this->chart['bar']['yaxis']['labels']['formatter'] = $this->getChartLabelFormatter();
$this->chart['donut']['yaxis']['labels']['formatter'] = $this->getFormatLabel('percent'); $this->chart['donut']['yaxis']['labels']['formatter'] = $this->getChartLabelFormatter('percent');
} }
public function setYear() public function setYear()

View File

@ -95,7 +95,7 @@ trait Charts
return $chart; return $chart;
} }
public function getFormatLabel($type = 'money', $position = null) public function getChartLabelFormatter($type = 'money', $position = null)
{ {
$label = ''; $label = '';
$decimal_mark = str_replace("'", "\\'", config('money.' . setting('default.currency') . '.decimal_mark')); $decimal_mark = str_replace("'", "\\'", config('money.' . setting('default.currency') . '.decimal_mark'));

View File

@ -56,7 +56,7 @@ class CashFlow extends Widget
], ],
'yaxis' => [ 'yaxis' => [
'labels' => [ 'labels' => [
'formatter' => $this->getFormatLabel(), 'formatter' => $this->getChartLabelFormatter(),
], ],
], ],
]; ];

View File

@ -51,7 +51,7 @@ class ProfitLoss extends Widget
'yaxis' => [ 'yaxis' => [
'labels' => [ 'labels' => [
'formatter' => $this->getFormatLabel(), 'formatter' => $this->getChartLabelFormatter(),
], ],
], ],
]; ];