Skip to content

Commit

Permalink
Fixes chart formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
cdterry87 committed Aug 12, 2024
1 parent c6606aa commit f2f1b62
Showing 1 changed file with 15 additions and 20 deletions.
35 changes: 15 additions & 20 deletions app/Livewire/Home.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,19 @@
use App\Traits\WithAlerts;
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Auth;
use Asantibanez\LivewireCharts\Models\PieChartModel;
use Asantibanez\LivewireCharts\Models\LineChartModel;
use Asantibanez\LivewireCharts\Models\ColumnChartModel;

class Home extends Component
{
use WithAlerts;

private $chartJsonConfig = [
'title' => [
'style' => [
'fontSize' => '18px',
'color' => '#444444'
]
],
'legend' => [
'fontSize' => '12px',
'fontWeight' => 'bold',
'labels' => [
'colors' => [
'#444444'
'#323232'
]
]
],
Expand All @@ -37,26 +28,30 @@ class Home extends Component
],
'xaxis' => [
'labels' => [
'style' => [
'fontSize' => '10px',
'colors' => '#444444'
]
'show' => false,
]
],
'yaxis' => [
'labels' => [
'style' => [
'fontSize' => '10px',
'colors' => '#444444'
'colors' => '#323232'
],
]
],
'plotOptions' => [
'bar' => [
'dataLabels' => [
'position' => 'top',
]
]
],
'dataLabels' => [
'total' => [
'style' => [
'fontSize' => '10px',
'colors' => '#444444'
]
'enabled' => true,
'offsetY' => -25,
'style' => [
'fontSize' => '16px',
'colors' => ['#323232'],
]
]
];
Expand Down

0 comments on commit f2f1b62

Please sign in to comment.