This commit is contained in:
salam committed 2026-05-29 12:24:03 +02:00
1 parent e01400d65b
commit eea1a8de4e
3 files changed
+14 -7

No files matched your search

+5 -4
View File
@@ -182,15 +182,16 @@ class Statistic extends BaseDashboard
'all' => 'All Database', 'all' => 'All Database',
]), ]),
Slider::make('accuracy') Slider::make('accuracy')
->label('Accuracy max: 0.25, steps: 0.025')
->hiddenLabel() ->hiddenLabel()
->disabled(fn (Get $get) => $get('similar_past_matches') == 'none') ->disabled(fn (Get $get) => $get('similar_past_matches') == 'none')
// ->fillTrack() // ->fillTrack()
->default(5) ->range(minValue: 0, maxValue: 0.25)
->step(0.1) ->step(0.025)
->decimalPlaces(1) ->decimalPlaces(1)
->decimalPlaces(3)
->tooltips() ->tooltips()
->range(minValue: 0, maxValue: 1) // ->pips()
->pips()
->live(), ->live(),
Select::make('tm_player_id') Select::make('tm_player_id')
->label('Player') ->label('Player')
@@ -73,7 +73,7 @@ class LoadPerformance
'spanGaps' => true, 'spanGaps' => true,
'tension' => 0.5, 'tension' => 0.5,
'borderColor' => '#fb2c36', 'borderColor' => '#fb2c36',
'backgroundColor' => '#c10007', 'backgroundColor' => '#fb2c36',
], ],
[ [
'label' => 'Defence', 'label' => 'Defence',
@@ -81,6 +81,7 @@ class LoadPerformance
'spanGaps' => true, 'spanGaps' => true,
'tension' => 0.5, 'tension' => 0.5,
'borderColor' => '#c10007', 'borderColor' => '#c10007',
'backgroundColor' => '#c10007',
'fill' => false, 'fill' => false,
], ],
[ [
@@ -89,6 +90,7 @@ class LoadPerformance
'spanGaps' => true, 'spanGaps' => true,
'tension' => 0.5, 'tension' => 0.5,
'borderColor' => '#c10007', 'borderColor' => '#c10007',
'backgroundColor' => '#c10007',
'fill' => false, 'fill' => false,
], ],
[ [
@@ -97,6 +99,7 @@ class LoadPerformance
'spanGaps' => true, 'spanGaps' => true,
'tension' => 0.5, 'tension' => 0.5,
'borderColor' => '#c10007', 'borderColor' => '#c10007',
'backgroundColor' => '#c10007',
'fill' => false, 'fill' => false,
], ],
[ [
@@ -105,7 +108,7 @@ class LoadPerformance
'spanGaps' => true, 'spanGaps' => true,
'tension' => 0.5, 'tension' => 0.5,
'borderColor' => '#fdc700', 'borderColor' => '#fdc700',
'backgroundColor' => '#a65f00', 'backgroundColor' => '#fdc700',
'fill' => false, 'fill' => false,
], ],
[ [
@@ -114,6 +117,7 @@ class LoadPerformance
'spanGaps' => true, 'spanGaps' => true,
'tension' => 0.5, 'tension' => 0.5,
'borderColor' => '#d08700', 'borderColor' => '#d08700',
'backgroundColor' => '#d08700',
'fill' => false, 'fill' => false,
], ],
[ [
@@ -122,6 +126,7 @@ class LoadPerformance
'spanGaps' => true, 'spanGaps' => true,
'tension' => 0.5, 'tension' => 0.5,
'borderColor' => '#d08700', 'borderColor' => '#d08700',
'backgroundColor' => '#d08700',
'fill' => false, 'fill' => false,
], ],
[ [
@@ -130,6 +135,7 @@ class LoadPerformance
'spanGaps' => true, 'spanGaps' => true,
'tension' => 0.5, 'tension' => 0.5,
'borderColor' => '#d08700', 'borderColor' => '#d08700',
'backgroundColor' => '#d08700',
'fill' => false, 'fill' => false,
], ],
], ],
+1 -1
View File
@@ -25,7 +25,7 @@ class StatsMedianAverage extends StatsOverviewWidget
protected function getStats(): array protected function getStats(): array
{ {
$data = LoadEvents::load($this->filters, 'Events'); $data = LoadEvents::load($this->filters);
$statistic_type = ucfirst(HelperStatisticType::get($this->filters)); $statistic_type = ucfirst(HelperStatisticType::get($this->filters));