Fixed: Charts label formatting..

This commit is contained in:
Cüneyt Şentürk
2022-06-24 15:56:29 +03:00
parent eb7ab67eb8
commit ad03af63cb
3 changed files with 84 additions and 2 deletions

View File

@ -5,13 +5,14 @@ namespace App\Widgets;
use Akaunting\Apexcharts\Chart;
use App\Abstracts\Widget;
use App\Models\Banking\Transaction;
use App\Traits\Charts;
use App\Traits\Currencies;
use App\Traits\DateTime;
use App\Utilities\Date;
class CashFlow extends Widget
{
use Currencies, DateTime;
use Charts, Currencies, DateTime;
public $default_name = 'widgets.cash_flow';
@ -53,6 +54,11 @@ class CashFlow extends Widget
'legend' => [
'position' => 'top',
],
'yaxis' => [
'labels' => [
'formatter' => $this->getFormatLabel('percent'),
],
],
];
$chart = new Chart();