diff --git a/app/Livewire/Charts/TopCountiesChart.php b/app/Livewire/Charts/TopCountiesChart.php index 94c192e..a7e4ec8 100644 --- a/app/Livewire/Charts/TopCountiesChart.php +++ b/app/Livewire/Charts/TopCountiesChart.php @@ -110,7 +110,6 @@ protected function getOptions(): RawJs return RawJs::make(<<<'JS' { - maintainAspectRatio: false, aspectRatio: 0.15, indexAxis: 'y', scales: { @@ -127,7 +126,7 @@ protected function getOptions(): RawJs callbacks: { label: (context) => { let label = context.dataset.label; - console.log(context); + if (label) { label += ': '; } diff --git a/app/Livewire/Charts/TopLocalitiesChart.php b/app/Livewire/Charts/TopLocalitiesChart.php index 9010eab..5f7dfa7 100644 --- a/app/Livewire/Charts/TopLocalitiesChart.php +++ b/app/Livewire/Charts/TopLocalitiesChart.php @@ -129,6 +129,7 @@ protected function getOptions(): RawJs return RawJs::make(<<<'JS' { + aspectRatio: 1, indexAxis: 'y', scales: { y: {