Skip to content

Commit

Permalink
fix chart
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarzin committed May 2, 2023
1 parent ec4ad05 commit 26cc737
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions resources/views/home.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
{!! trans("panel.repartition") !!}
</div>
<div class="card-body">
<div style="width: 1075px; height: 400px;">
<div style="width: 1000px; height: 400px;">
<canvas id="bar_chart_div"></canvas>
</div>
</div>
Expand Down Expand Up @@ -456,17 +456,17 @@
var dataset = data['datasets'];
return dataset[tooltipItem['datasetIndex']]['label']+': '+dataset[tooltipItem['datasetIndex']]['value'];
},
// afterLabel: function(tooltipItem, data) {
// var dataset = data['datasets'];
// var percent =
// return '(' + percent + '%)';
// return dataset[tooltipItem['datasetIndex']]['value'];
// }
},
},
},
scales: {
yAxes: [{ barPercentage: 1.0 }],
},
yAxes: [{
barPercentage: 1.0,
beginAtZero: true,
steps: 10,
stepValue: 5,
max: 100
}],
},
responsive: true,
maintainAspectRatio: false,
animation: {
Expand Down

0 comments on commit 26cc737

Please sign in to comment.