From 53ddf5ae04cab530149a8e3c2f38badc7d1a11fd Mon Sep 17 00:00:00 2001 From: Godfrey M Date: Tue, 24 Aug 2021 15:07:18 -0700 Subject: [PATCH] removed dead space --- resources/views/dashboard.blade.php | 39 +++++++++++++---------------- 1 file changed, 17 insertions(+), 22 deletions(-) diff --git a/resources/views/dashboard.blade.php b/resources/views/dashboard.blade.php index f3d380116..ed9439c9b 100755 --- a/resources/views/dashboard.blade.php +++ b/resources/views/dashboard.blade.php @@ -418,7 +418,6 @@ // --------------------------- // - ASSET STATUS CHART - // --------------------------- - var pieChartCanvas = $("#statusPieChart").get(0).getContext("2d"); var pieChart = new Chart(pieChartCanvas); var ctx = document.getElementById("statusPieChart"); @@ -427,31 +426,27 @@ position: 'top', responsive: true, maintainAspectRatio: true, - } }; $.ajax({ - type: 'GET', - url: '{{ route('api.statuslabels.assets.bytype') }}', - headers: { - "X-Requested-With": 'XMLHttpRequest', - "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr('content') - }, - dataType: 'json', - success: function (data) { - - var myPieChart = new Chart(ctx, { - type: 'doughnut', - data: data, - options: pieOptions - }); - - }, - error: function (data) { - - // window.location.reload(true); - } + type: 'GET', + url: '{{ route('api.statuslabels.assets.bytype') }}', + headers: { + "X-Requested-With": 'XMLHttpRequest', + "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr('content') + }, + dataType: 'json', + success: function (data) { + var myPieChart = new Chart(ctx,{ + type : 'doughnut', + data : data, + options: pieOptions + }); + }, + error: function (data) { + // window.location.reload(true); + } });