chart eliminato dati nulli

This commit is contained in:
Amministratore 2025-10-21 11:32:54 +02:00
parent 388651726e
commit a7e55dd340

View File

@ -10,7 +10,9 @@
var data = google.visualization.arrayToDataTable([
['Categoria', 'resoconto'],
@foreach($dataSpesa as $dato)
@if($dato->resoconto !='')
['{{ $dato->cat_name }}', {{ $dato->resoconto }}],
@endif
@endforeach
]);
@ -32,7 +34,9 @@
var data = google.visualization.arrayToDataTable([
['Categoria', 'resoconto'],
@foreach($dataEntrate as $dato)
@if($dato->resoconto !='')
['{{ $dato->cat_name }}', {{ $dato->resoconto }}],
@endif
@endforeach
]);
@ -52,4 +56,4 @@
@endsection
@section('chart_divE')
<div id="piechartE" style="width: 500px; height: 500px;"></div>
@endsection
@endsection