formatting

This commit is contained in:
Denis Duliçi
2022-07-21 16:36:34 +03:00
parent 52bbd32bd8
commit ebfc67709a
4 changed files with 13 additions and 14 deletions

View File

@@ -3,13 +3,10 @@
namespace App\Traits;
use Akaunting\Apexcharts\Chart;
use App\Traits\Tailwind;
use Balping\JsonRaw\Raw;
trait Charts
{
use Tailwind;
public $bar = [
'colors' => [],
'labels' => [],
@@ -37,8 +34,6 @@ trait Charts
$label .= ' - ' . $description;
}
$color = $this->getHexCodeOfTailwindClass($color);
$this->addToDonut($color, $label, $amount);
}
@@ -74,8 +69,6 @@ trait Charts
public function addToBar($color, $label, $value)
{
$color = $this->getHexCodeOfTailwindClass($color);
$this->bar['colors'][] = $color;
$this->bar['labels'][] = $label;
$this->bar['values'][] = (int) $value;