|
@@ -4,85 +4,73 @@
|
|
|
<link rel="stylesheet" href="{{ asset('css/chart-reports.css') }}">
|
|
<link rel="stylesheet" href="{{ asset('css/chart-reports.css') }}">
|
|
|
|
|
|
|
|
<div class="dashboard-container">
|
|
<div class="dashboard-container">
|
|
|
- <div class="controls-section">
|
|
|
|
|
|
|
+ <div class="dashboard-card controls-section">
|
|
|
<div class="control-group">
|
|
<div class="control-group">
|
|
|
<label for="season-filter">Stagione di Riferimento:</label>
|
|
<label for="season-filter">Stagione di Riferimento:</label>
|
|
|
<select class="form-select" wire:model="seasonFilter" wire:change="updateCharts">
|
|
<select class="form-select" wire:model="seasonFilter" wire:change="updateCharts">
|
|
|
@foreach($this->getAvailableSeasons() as $season)
|
|
@foreach($this->getAvailableSeasons() as $season)
|
|
|
- <option value="{{ $season }}">{{ $season }}</option>
|
|
|
|
|
|
|
+ <option value="{{ $season }}">{{ $season }}</option>
|
|
|
@endforeach
|
|
@endforeach
|
|
|
</select>
|
|
</select>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
@php
|
|
@php
|
|
|
- $summary = $this->getYearlySummary();
|
|
|
|
|
|
|
+ $summary = $this->getYearlySummary();
|
|
|
@endphp
|
|
@endphp
|
|
|
<div class="summary-cards">
|
|
<div class="summary-cards">
|
|
|
- <div class="summary-card income">
|
|
|
|
|
- <h3>Entrate Totali</h3>
|
|
|
|
|
- <div class="value">€{{ number_format($summary['totalIncome'], 2, ',', '.') }}</div>
|
|
|
|
|
|
|
+ <div class="dashboard-card dashboard-stat card-inverted card-income">
|
|
|
|
|
+ <div class="dashboard-card-header">
|
|
|
|
|
+ <div class="dashboard-card-title">Entrate totali</div>
|
|
|
|
|
+ <i class="dashboard-card-icon fa-solid fa-money-bill-trend-up"></i>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="dashboard-card-value">€{{number_format($summary['totalIncome'], 2, ",", ".")}}</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="summary-card expense">
|
|
|
|
|
- <h3>Uscite Totali</h3>
|
|
|
|
|
- <div class="value">€{{ number_format($summary['totalExpenses'], 2, ',', '.') }}</div>
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <div class="dashboard-card dashboard-stat card-inverted card-expense">
|
|
|
|
|
+ <div class="dashboard-card-header">
|
|
|
|
|
+ <div class="dashboard-card-title">Uscite totali</div>
|
|
|
|
|
+ <i class="dashboard-card-icon fa-solid fa-money-bill-transfer"></i>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="dashboard-card-value">€{{number_format($summary['totalExpenses'], 2, ",", ".")}}</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="summary-card delta {{ $summary['delta'] < 0 ? 'negative' : '' }}">
|
|
|
|
|
- <h3>Bilancio Netto</h3>
|
|
|
|
|
- <div class="value">€{{ number_format($summary['delta'], 2, ',', '.') }}</div>
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <div class="dashboard-card dashboard-stat card-inverted card-delta">
|
|
|
|
|
+ <div class="dashboard-card-header">
|
|
|
|
|
+ <div class="dashboard-card-title">Bilancio netto</div>
|
|
|
|
|
+ <i class="dashboard-card-icon fa-solid fa-money-bill-transfer"></i>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ {{-- {{ $summary['delta'] < 0 ? 'negative' : '' }} --}} <div class="dashboard-card-value">€{{number_format($summary['delta'], 2, ",", ".")}}
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
|
|
|
- <div wire:ignore>
|
|
|
|
|
- <div class="chart-row">
|
|
|
|
|
- <div class="chart-card">
|
|
|
|
|
- <div class="chart-header">
|
|
|
|
|
- <h3 class="chart-title">Entrate e Uscite Mensili - <span
|
|
|
|
|
- id="monthly-season-title">{{ $seasonFilter }}</span></h3>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="chart-body">
|
|
|
|
|
- <div style="display: grid; grid-template-columns: 1fr 300px; align-items: start;">
|
|
|
|
|
- <div class="chart-container">
|
|
|
|
|
- <canvas id="monthly-chart-{{ str_replace('-', '', $seasonFilter) }}"></canvas>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="monthly-table-container" id="monthly-table">
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <div wire:ignore>
|
|
|
|
|
+ <div class="chart-row">
|
|
|
|
|
+ <div class="dashboard-card chart-card">
|
|
|
|
|
+ <div class="dashboard-card-title">Entrate e Uscite Mensili - <span id="causals-season-title">{{ $seasonFilter }}</span></div>
|
|
|
|
|
+ <div class="chart-body">
|
|
|
|
|
+ <div style="display: grid; grid-template-columns: 1fr 300px; align-items: start;">
|
|
|
|
|
+ <div class="chart-container">
|
|
|
|
|
+ <canvas id="monthly-chart-{{ str_replace('-', '', $seasonFilter) }}"></canvas>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="monthly-table-container" id="monthly-table">
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
|
|
|
- <div class="chart-row">
|
|
|
|
|
- <div class="chart-card">
|
|
|
|
|
- <div class="chart-header">
|
|
|
|
|
- <h3 class="chart-title">Causali Performanti - <span
|
|
|
|
|
- id="causals-season-title">{{ $seasonFilter }}</span></h3>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="chart-body">
|
|
|
|
|
- <div style="display: grid; grid-template-columns: 1fr 700px; gap: 1rem; align-items: start;">
|
|
|
|
|
- <div class="causals-table-container" id="causals-table">
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <div class="chart-container">
|
|
|
|
|
- <canvas id="causals-chart-{{ str_replace('-', '', $seasonFilter) }}"></canvas>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <div class="chart-row">
|
|
|
|
|
+ <div class="dashboard-card chart-card">
|
|
|
|
|
+ <div class="dashboard-card-title">Causali Performanti - <span id="causals-season-title">{{ $seasonFilter }}</span></div>
|
|
|
|
|
+ <div class="chart-body">
|
|
|
|
|
+ <div style="display: grid; grid-template-columns: 1fr 700px; gap: 1rem; align-items: start;">
|
|
|
|
|
+ <div class="causals-table-container" id="causals-table">
|
|
|
</div>
|
|
</div>
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
|
|
|
- <div class="chart-row">
|
|
|
|
|
- <div class="chart-card">
|
|
|
|
|
- <div class="chart-header">
|
|
|
|
|
- <h3 class="chart-title">Tesserati per Stagione</h3>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="chart-body">
|
|
|
|
|
- <div style="display: grid; grid-template-columns: 1fr 500px; gap: 1rem; align-items: start;">
|
|
|
|
|
- <div class="chart-container">
|
|
|
|
|
- <canvas id="members-chart-{{ str_replace('-', '', $seasonFilter) }}"></canvas>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="members-table-container" id="members-table">
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <div class="chart-container">
|
|
|
|
|
+ <canvas id="causals-chart-{{ str_replace('-', '', $seasonFilter) }}"></canvas>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -90,54 +78,66 @@
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="chart-row">
|
|
<div class="chart-row">
|
|
|
- <div class="chart-card modern-course-card">
|
|
|
|
|
- <div class="chart-header">
|
|
|
|
|
- <h3 class="chart-title">Analisi Corsi</h3>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <div class="dashboard-card chart-card">
|
|
|
|
|
+ <div class="dashboard-card-title">Tesserati per Stagione</div>
|
|
|
<div class="chart-body">
|
|
<div class="chart-body">
|
|
|
- <div class="course-controls">
|
|
|
|
|
- <div class="control-group">
|
|
|
|
|
- <label>Seleziona Corso ({{ $seasonFilter }}):</label>
|
|
|
|
|
- <select class="form-select modern-select" wire:model.live="selectedCourse">
|
|
|
|
|
- <option value="">Seleziona un Corso</option>
|
|
|
|
|
- @foreach($this->getCoursesForSelect() as $course)
|
|
|
|
|
- <option value="{{ $course['id'] }}">{{ $course['full_name'] }}</option>
|
|
|
|
|
- @endforeach
|
|
|
|
|
- </select>
|
|
|
|
|
|
|
+ <div style="display: grid; grid-template-columns: 1fr 500px; gap: 1rem; align-items: start;">
|
|
|
|
|
+ <div class="chart-container">
|
|
|
|
|
+ <canvas id="members-chart-{{ str_replace('-', '', $seasonFilter) }}"></canvas>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="members-table-container" id="members-table">
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="chart-row">
|
|
|
|
|
+ <div class="dashboard-card chart-card modern-course-card">
|
|
|
|
|
+ <div class="dashboard-card-title">Analisi Corsi</div>
|
|
|
|
|
+ <div class="chart-body">
|
|
|
|
|
+ <div class="course-controls">
|
|
|
|
|
+ <div class="control-group">
|
|
|
|
|
+ <label>Seleziona Corso ({{ $seasonFilter }}):</label>
|
|
|
|
|
+ <select class="form-select modern-select" wire:model.live="selectedCourse">
|
|
|
|
|
+ <option value="">Seleziona un Corso</option>
|
|
|
|
|
+ @foreach($this->getCoursesForSelect() as $course)
|
|
|
|
|
+ <option value="{{ $course['id'] }}">{{ $course['full_name'] }}</option>
|
|
|
|
|
+ @endforeach
|
|
|
|
|
+ </select>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
|
|
|
- @if($selectedCourse)
|
|
|
|
|
- <div wire:ignore wire:key="course-chart-{{ $seasonFilter }}-{{ $selectedCourse }}">
|
|
|
|
|
- <div class="modern-chart-layout">
|
|
|
|
|
- <div class="course-delta-table"
|
|
|
|
|
- id="course-delta-table-{{ str_replace('-', '', $seasonFilter) }}-{{ $selectedCourse }}">
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <div class="modern-chart-container">
|
|
|
|
|
- <canvas
|
|
|
|
|
- id="courses-chart-{{ str_replace('-', '', $seasonFilter) }}-{{ $selectedCourse }}"></canvas>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ @if($selectedCourse)
|
|
|
|
|
+ <div wire:ignore wire:key="course-chart-{{ $seasonFilter }}-{{ $selectedCourse }}">
|
|
|
|
|
+ <div class="modern-chart-layout">
|
|
|
|
|
+ <div class="course-delta-table" id="course-delta-table-{{ str_replace('-', '', $seasonFilter) }}-{{ $selectedCourse }}">
|
|
|
</div>
|
|
</div>
|
|
|
- @else
|
|
|
|
|
- <div class="chart-placeholder">
|
|
|
|
|
- <div style="text-align: center;">
|
|
|
|
|
- <div style="font-size: 3rem; margin-bottom: 1rem; opacity: 0.3;">📊</div>
|
|
|
|
|
- <p style="font-size: 1.25rem; font-weight: 600; margin: 0;">Seleziona un corso per
|
|
|
|
|
- visualizzare il grafico</p>
|
|
|
|
|
- <p style="font-size: 1rem; opacity: 0.7; margin-top: 0.5rem;">Usa il menu a tendina sopra
|
|
|
|
|
- per scegliere un corso</p>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <div class="modern-chart-container">
|
|
|
|
|
+ <canvas id="courses-chart-{{ str_replace('-', '', $seasonFilter) }}-{{ $selectedCourse }}"></canvas>
|
|
|
</div>
|
|
</div>
|
|
|
- @endif
|
|
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ @else
|
|
|
|
|
+ <div class="chart-placeholder">
|
|
|
|
|
+ <div style="text-align: center;">
|
|
|
|
|
+ <div style="font-size: 3rem; margin-bottom: 1rem; opacity: 0.3;">📊</div>
|
|
|
|
|
+ <p style="font-size: 1.25rem; font-weight: 600; margin: 0;">Seleziona un corso per
|
|
|
|
|
+ visualizzare il grafico</p>
|
|
|
|
|
+ <p style="font-size: 1rem; opacity: 0.7; margin-top: 0.5rem;">Usa il menu a tendina sopra
|
|
|
|
|
+ per scegliere un corso</p>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ @endif
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+</div>
|
|
|
|
|
|
|
|
- <script>
|
|
|
|
|
- window.ReportsChartManager = window.ReportsChartManager || {
|
|
|
|
|
|
|
+<script>
|
|
|
|
|
+ window.ReportsChartManager = window.ReportsChartManager || {
|
|
|
charts: {},
|
|
charts: {},
|
|
|
currentSeason: null,
|
|
currentSeason: null,
|
|
|
|
|
|
|
@@ -231,47 +231,68 @@
|
|
|
data: monthlyData.datasets[0].data,
|
|
data: monthlyData.datasets[0].data,
|
|
|
backgroundColor: incomeGradient,
|
|
backgroundColor: incomeGradient,
|
|
|
borderColor: '#00b894',
|
|
borderColor: '#00b894',
|
|
|
- borderWidth: 2,
|
|
|
|
|
- borderRadius: 12,
|
|
|
|
|
|
|
+ borderWidth: 0,
|
|
|
|
|
+ borderRadius: {
|
|
|
|
|
+ topLeft: 8,
|
|
|
|
|
+ topRight: 8,
|
|
|
|
|
+ bottomLeft: 0,
|
|
|
|
|
+ bottomRight: 0,
|
|
|
|
|
+ },
|
|
|
borderSkipped: false,
|
|
borderSkipped: false,
|
|
|
|
|
+ barThickness: "flex",
|
|
|
|
|
+ barPercentage: 0.65,
|
|
|
|
|
+ categoryPercentage: 0.4,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: 'Uscite',
|
|
label: 'Uscite',
|
|
|
data: monthlyData.datasets[1].data,
|
|
data: monthlyData.datasets[1].data,
|
|
|
backgroundColor: expenseGradient,
|
|
backgroundColor: expenseGradient,
|
|
|
borderColor: '#ff6b6b',
|
|
borderColor: '#ff6b6b',
|
|
|
- borderWidth: 2,
|
|
|
|
|
- borderRadius: 12,
|
|
|
|
|
|
|
+ borderWidth: 0,
|
|
|
|
|
+ borderRadius: {
|
|
|
|
|
+ topLeft: 8,
|
|
|
|
|
+ topRight: 8,
|
|
|
|
|
+ bottomLeft: 0,
|
|
|
|
|
+ bottomRight: 0,
|
|
|
|
|
+ },
|
|
|
borderSkipped: false,
|
|
borderSkipped: false,
|
|
|
|
|
+ barThickness: "flex",
|
|
|
|
|
+ barPercentage: 0.65,
|
|
|
|
|
+ categoryPercentage: 0.4,
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
options: {
|
|
options: {
|
|
|
responsive: true,
|
|
responsive: true,
|
|
|
maintainAspectRatio: false,
|
|
maintainAspectRatio: false,
|
|
|
|
|
+ interaction: {
|
|
|
|
|
+ mode: 'index',
|
|
|
|
|
+ intersect: false,
|
|
|
|
|
+ },
|
|
|
plugins: {
|
|
plugins: {
|
|
|
legend: {
|
|
legend: {
|
|
|
- position: 'top',
|
|
|
|
|
|
|
+ position: 'bottom',
|
|
|
labels: {
|
|
labels: {
|
|
|
usePointStyle: true,
|
|
usePointStyle: true,
|
|
|
padding: 20,
|
|
padding: 20,
|
|
|
|
|
+ pointStyle: "rect",
|
|
|
font: { weight: '500' }
|
|
font: { weight: '500' }
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
tooltip: {
|
|
tooltip: {
|
|
|
- backgroundColor: 'rgba(255, 255, 255,1)',
|
|
|
|
|
|
|
+ backgroundColor: 'rgba(255, 255, 255, 1)',
|
|
|
titleColor: '#212529',
|
|
titleColor: '#212529',
|
|
|
bodyColor: '#495057',
|
|
bodyColor: '#495057',
|
|
|
borderColor: '#e9ecef',
|
|
borderColor: '#e9ecef',
|
|
|
- borderWidth: 12,
|
|
|
|
|
- cornerRadius: 8,
|
|
|
|
|
|
|
+ borderWidth: 2,
|
|
|
|
|
+ cornerRadius: 0,
|
|
|
callbacks: {
|
|
callbacks: {
|
|
|
label: function (context) {
|
|
label: function (context) {
|
|
|
return context.dataset.label + ': €' +
|
|
return context.dataset.label + ': €' +
|
|
|
new Intl.NumberFormat('it-IT').format(context.parsed.y);
|
|
new Intl.NumberFormat('it-IT').format(context.parsed.y);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
scales: {
|
|
scales: {
|
|
|
x: {
|
|
x: {
|
|
@@ -291,8 +312,8 @@
|
|
|
elements: {
|
|
elements: {
|
|
|
bar: {
|
|
bar: {
|
|
|
borderRadius: {
|
|
borderRadius: {
|
|
|
- topLeft: 12,
|
|
|
|
|
- topRight: 12,
|
|
|
|
|
|
|
+ topLeft: 8,
|
|
|
|
|
+ topRight: 8,
|
|
|
bottomLeft: 0,
|
|
bottomLeft: 0,
|
|
|
bottomRight: 0
|
|
bottomRight: 0
|
|
|
}
|
|
}
|
|
@@ -349,10 +370,10 @@
|
|
|
cutout: '30%',
|
|
cutout: '30%',
|
|
|
layout: {
|
|
layout: {
|
|
|
padding: {
|
|
padding: {
|
|
|
- top: 10,
|
|
|
|
|
- right: 10,
|
|
|
|
|
- bottom: 10,
|
|
|
|
|
- left: 10
|
|
|
|
|
|
|
+ top: 30,
|
|
|
|
|
+ right: 30,
|
|
|
|
|
+ bottom: 30,
|
|
|
|
|
+ left: 30
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
plugins: {
|
|
plugins: {
|
|
@@ -360,12 +381,12 @@
|
|
|
display: false
|
|
display: false
|
|
|
},
|
|
},
|
|
|
tooltip: {
|
|
tooltip: {
|
|
|
- backgroundColor: 'rgba(255, 255, 255, 0.95)',
|
|
|
|
|
|
|
+ backgroundColor: 'rgba(255, 255, 255, 1)',
|
|
|
titleColor: '#212529',
|
|
titleColor: '#212529',
|
|
|
bodyColor: '#495057',
|
|
bodyColor: '#495057',
|
|
|
borderColor: '#e9ecef',
|
|
borderColor: '#e9ecef',
|
|
|
- borderWidth: 1,
|
|
|
|
|
- cornerRadius: 8,
|
|
|
|
|
|
|
+ borderWidth: 2,
|
|
|
|
|
+ cornerRadius: 0,
|
|
|
titleFont: {
|
|
titleFont: {
|
|
|
size: 13,
|
|
size: 13,
|
|
|
weight: 'bold'
|
|
weight: 'bold'
|
|
@@ -461,30 +482,30 @@
|
|
|
if (dataset.label === 'Totale Membri Tesserati') {
|
|
if (dataset.label === 'Totale Membri Tesserati') {
|
|
|
return {
|
|
return {
|
|
|
...dataset,
|
|
...dataset,
|
|
|
- backgroundColor: gradient,
|
|
|
|
|
- borderColor: '#3b5bdb',
|
|
|
|
|
- borderWidth: 3,
|
|
|
|
|
- pointBackgroundColor: '#3b5bdb',
|
|
|
|
|
- pointBorderColor: '#ffffff',
|
|
|
|
|
|
|
+ borderColor: '#8979ff',
|
|
|
|
|
+ borderWidth: 2,
|
|
|
|
|
+ pointBackgroundColor: '#ffffff',
|
|
|
|
|
+ pointBorderColor: '#8979ff',
|
|
|
pointBorderWidth: 2,
|
|
pointBorderWidth: 2,
|
|
|
- pointRadius: 6,
|
|
|
|
|
- pointHoverRadius: 8,
|
|
|
|
|
|
|
+ pointRadius: 3,
|
|
|
|
|
+ pointHoverRadius: 3,
|
|
|
type: 'line',
|
|
type: 'line',
|
|
|
order: 1,
|
|
order: 1,
|
|
|
|
|
+ backgroundColor: "#8979ff40",
|
|
|
fill: true
|
|
fill: true
|
|
|
};
|
|
};
|
|
|
} else {
|
|
} else {
|
|
|
return {
|
|
return {
|
|
|
...dataset,
|
|
...dataset,
|
|
|
|
|
+ backgroundColor: dataset.backgroundColor,
|
|
|
borderWidth: 2,
|
|
borderWidth: 2,
|
|
|
- pointRadius: 4,
|
|
|
|
|
- pointHoverRadius: 6,
|
|
|
|
|
- pointBorderColor: '#ffffff',
|
|
|
|
|
- pointBorderWidth: 1,
|
|
|
|
|
|
|
+ pointRadius: 3,
|
|
|
|
|
+ pointHoverRadius: 3,
|
|
|
|
|
+ pointBackgroundColor: '#ffffff',
|
|
|
|
|
+ pointBorderWidth: 2,
|
|
|
type: 'line',
|
|
type: 'line',
|
|
|
order: 2,
|
|
order: 2,
|
|
|
- fill: false,
|
|
|
|
|
- backgroundColor: 'transparent'
|
|
|
|
|
|
|
+ fill: true
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
@@ -504,21 +525,21 @@
|
|
|
},
|
|
},
|
|
|
plugins: {
|
|
plugins: {
|
|
|
legend: {
|
|
legend: {
|
|
|
- display: true,
|
|
|
|
|
- position: 'top',
|
|
|
|
|
|
|
+ position: 'bottom',
|
|
|
labels: {
|
|
labels: {
|
|
|
usePointStyle: true,
|
|
usePointStyle: true,
|
|
|
- padding: 15,
|
|
|
|
|
- font: { weight: '500', size: 12 }
|
|
|
|
|
|
|
+ padding: 20,
|
|
|
|
|
+ pointStyle: "rect",
|
|
|
|
|
+ font: { weight: '500' }
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
tooltip: {
|
|
tooltip: {
|
|
|
- backgroundColor: 'rgba(255, 255, 255, 0.95)',
|
|
|
|
|
|
|
+ backgroundColor: 'rgba(255, 255, 255, 1)',
|
|
|
titleColor: '#212529',
|
|
titleColor: '#212529',
|
|
|
bodyColor: '#495057',
|
|
bodyColor: '#495057',
|
|
|
borderColor: '#e9ecef',
|
|
borderColor: '#e9ecef',
|
|
|
- borderWidth: 1,
|
|
|
|
|
- cornerRadius: 8,
|
|
|
|
|
|
|
+ borderWidth: 2,
|
|
|
|
|
+ cornerRadius: 0,
|
|
|
callbacks: {
|
|
callbacks: {
|
|
|
title: function (context) {
|
|
title: function (context) {
|
|
|
return 'Stagione: ' + context[0].label;
|
|
return 'Stagione: ' + context[0].label;
|
|
@@ -731,11 +752,11 @@
|
|
|
},
|
|
},
|
|
|
plugins: {
|
|
plugins: {
|
|
|
legend: {
|
|
legend: {
|
|
|
- display: true,
|
|
|
|
|
- position: 'top',
|
|
|
|
|
|
|
+ position: 'bottom',
|
|
|
labels: {
|
|
labels: {
|
|
|
usePointStyle: true,
|
|
usePointStyle: true,
|
|
|
padding: 20,
|
|
padding: 20,
|
|
|
|
|
+ pointStyle: "rect",
|
|
|
font: { weight: '500' }
|
|
font: { weight: '500' }
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -744,8 +765,8 @@
|
|
|
titleColor: '#212529',
|
|
titleColor: '#212529',
|
|
|
bodyColor: '#495057',
|
|
bodyColor: '#495057',
|
|
|
borderColor: '#e9ecef',
|
|
borderColor: '#e9ecef',
|
|
|
- borderWidth: 1,
|
|
|
|
|
- cornerRadius: 8,
|
|
|
|
|
|
|
+ borderWidth: 2,
|
|
|
|
|
+ cornerRadius: 0,
|
|
|
callbacks: {
|
|
callbacks: {
|
|
|
label: function (context) {
|
|
label: function (context) {
|
|
|
return context.dataset.label + ': €' +
|
|
return context.dataset.label + ': €' +
|
|
@@ -862,27 +883,39 @@
|
|
|
backgroundColor: earnedGradient,
|
|
backgroundColor: earnedGradient,
|
|
|
borderColor: 'rgba(16, 185, 129, 1)',
|
|
borderColor: 'rgba(16, 185, 129, 1)',
|
|
|
borderWidth: 0,
|
|
borderWidth: 0,
|
|
|
- borderRadius: 8,
|
|
|
|
|
- borderSkipped: false,
|
|
|
|
|
|
|
+ borderRadius: {
|
|
|
|
|
+ topLeft: 8,
|
|
|
|
|
+ topRight: 8,
|
|
|
|
|
+ bottomLeft: 0,
|
|
|
|
|
+ bottomRight: 0,
|
|
|
|
|
+ },
|
|
|
|
|
+ borderSkipped: true,
|
|
|
data: earnedData,
|
|
data: earnedData,
|
|
|
type: 'bar',
|
|
type: 'bar',
|
|
|
- order: 2
|
|
|
|
|
|
|
+ barThickness: "flex",
|
|
|
|
|
+ barPercentage: 0.65,
|
|
|
|
|
+ categoryPercentage: 0.4,
|
|
|
|
|
+ order: 2,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: 'Pagamenti Attesi',
|
|
label: 'Pagamenti Attesi',
|
|
|
- backgroundColor: 'transparent',
|
|
|
|
|
|
|
+ backgroundColor: 'rgba(59, 130, 246, 1)',
|
|
|
borderColor: 'rgba(59, 130, 246, 1)',
|
|
borderColor: 'rgba(59, 130, 246, 1)',
|
|
|
- borderWidth: 3,
|
|
|
|
|
- pointBackgroundColor: 'rgba(59, 130, 246, 1)',
|
|
|
|
|
- pointBorderColor: '#ffffff',
|
|
|
|
|
- pointBorderWidth: 3,
|
|
|
|
|
- pointRadius: 7,
|
|
|
|
|
- pointHoverRadius: 9,
|
|
|
|
|
|
|
+ borderWidth: 0,
|
|
|
|
|
+ borderRadius: {
|
|
|
|
|
+ topLeft: 8,
|
|
|
|
|
+ topRight: 8,
|
|
|
|
|
+ bottomLeft: 0,
|
|
|
|
|
+ bottomRight: 0,
|
|
|
|
|
+ },
|
|
|
|
|
+ borderSkipped: true,
|
|
|
data: totalData,
|
|
data: totalData,
|
|
|
- type: 'line',
|
|
|
|
|
- tension: 0.3,
|
|
|
|
|
|
|
+ type: 'bar',
|
|
|
|
|
+ barThickness: "flex",
|
|
|
|
|
+ barPercentage: 0.65,
|
|
|
|
|
+ categoryPercentage: 0.4,
|
|
|
order: 1,
|
|
order: 1,
|
|
|
- participantData: participantData
|
|
|
|
|
|
|
+ participantData: participantData,
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
@@ -903,6 +936,7 @@
|
|
|
},
|
|
},
|
|
|
scales: {
|
|
scales: {
|
|
|
x: {
|
|
x: {
|
|
|
|
|
+ stacked: true,
|
|
|
grid: {
|
|
grid: {
|
|
|
display: false
|
|
display: false
|
|
|
},
|
|
},
|
|
@@ -918,6 +952,7 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
y: {
|
|
y: {
|
|
|
|
|
+ stacked: true,
|
|
|
beginAtZero: true,
|
|
beginAtZero: true,
|
|
|
grid: {
|
|
grid: {
|
|
|
color: 'rgba(156, 163, 175, 0.15)',
|
|
color: 'rgba(156, 163, 175, 0.15)',
|
|
@@ -943,21 +978,21 @@
|
|
|
},
|
|
},
|
|
|
plugins: {
|
|
plugins: {
|
|
|
legend: {
|
|
legend: {
|
|
|
- display: true,
|
|
|
|
|
- position: 'top',
|
|
|
|
|
|
|
+ position: 'bottom',
|
|
|
labels: {
|
|
labels: {
|
|
|
usePointStyle: true,
|
|
usePointStyle: true,
|
|
|
- padding: 15,
|
|
|
|
|
- font: { weight: '500', size: 12 },
|
|
|
|
|
|
|
+ padding: 20,
|
|
|
|
|
+ pointStyle: "rect",
|
|
|
|
|
+ font: { weight: '500' }
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
tooltip: {
|
|
tooltip: {
|
|
|
- backgroundColor: 'rgba(255, 255, 255, 0.98)',
|
|
|
|
|
|
|
+ backgroundColor: 'rgba(255, 255, 255, 1)',
|
|
|
titleColor: '#111827',
|
|
titleColor: '#111827',
|
|
|
bodyColor: '#374151',
|
|
bodyColor: '#374151',
|
|
|
borderColor: 'rgba(229, 231, 235, 0.8)',
|
|
borderColor: 'rgba(229, 231, 235, 0.8)',
|
|
|
- borderWidth: 1,
|
|
|
|
|
- cornerRadius: 12,
|
|
|
|
|
|
|
+ borderWidth: 2,
|
|
|
|
|
+ cornerRadius: 0,
|
|
|
titleFont: {
|
|
titleFont: {
|
|
|
weight: 'bold',
|
|
weight: 'bold',
|
|
|
size: 15
|
|
size: 15
|
|
@@ -1019,8 +1054,8 @@
|
|
|
borderJoinStyle: 'round'
|
|
borderJoinStyle: 'round'
|
|
|
},
|
|
},
|
|
|
point: {
|
|
point: {
|
|
|
- hoverBorderWidth: 4,
|
|
|
|
|
- borderWidth: 3
|
|
|
|
|
|
|
+ hoverBorderWidth: 2,
|
|
|
|
|
+ borderWidth: 1
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -1126,5 +1161,5 @@
|
|
|
}, 200);
|
|
}, 200);
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
- </script>
|
|
|
|
|
-</div>
|
|
|
|
|
|
|
+</script>
|
|
|
|
|
+</div>
|