mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Commented out dashboard chart until proper data provided
This commit is contained in:
parent
12a7309ecd
commit
fbcc40a145
|
@ -152,7 +152,7 @@
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="chart">
|
<div class="chart">
|
||||||
<canvas id="salesChart" style="height:200px"></canvas>
|
<canvas id="salesChart-temp" style="height:200px"></canvas>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.chart-responsive -->
|
<!-- /.chart-responsive -->
|
||||||
</div>
|
</div>
|
||||||
|
@ -263,7 +263,7 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="chart-responsive">
|
<div class="chart-responsive">
|
||||||
<canvas id="statusPieChart" height="150"></canvas>
|
<canvas id="statusPieChart" height="300"></canvas>
|
||||||
</div> <!-- ./chart-responsive -->
|
</div> <!-- ./chart-responsive -->
|
||||||
</div> <!-- /.col -->
|
</div> <!-- /.col -->
|
||||||
</div> <!-- /.row -->
|
</div> <!-- /.row -->
|
||||||
|
@ -387,35 +387,32 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var ctx = document.getElementById('salesChart').getContext("2d")
|
//var ctx = document.getElementById('salesChart').getContext("2d")
|
||||||
var myChart = new Chart(ctx, {
|
//var myChart = new Chart(ctx, {
|
||||||
type: 'line'
|
// type: 'line'
|
||||||
|
//});
|
||||||
|
|
||||||
|
|
||||||
|
//$.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 ctx = new Chart(ctx,{
|
||||||
$.ajax({
|
// type: 'line',
|
||||||
type: 'GET',
|
// data: data,
|
||||||
url: '{{ route('api.statuslabels.assets.bytype') }}',
|
// options: lineOptions
|
||||||
headers: {
|
// });
|
||||||
"X-Requested-With": 'XMLHttpRequest',
|
// },
|
||||||
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr('content')
|
// error: function (data) {
|
||||||
},
|
// window.location.reload(true);
|
||||||
|
// }
|
||||||
dataType: 'json',
|
// });
|
||||||
success: function (data) {
|
|
||||||
var ctx = new Chart(ctx,{
|
|
||||||
type: 'line',
|
|
||||||
data: data,
|
|
||||||
options: lineOptions
|
|
||||||
});
|
|
||||||
},
|
|
||||||
error: function (data) {
|
|
||||||
window.location.reload(true);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue