mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 10:49:10 -04:00
April 9 update
This commit is contained in:
34
resources/views/admin/stats/component/lessonPlan.blade.php
Normal file
34
resources/views/admin/stats/component/lessonPlan.blade.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<div class="col-md-6">
|
||||
<div class="card">
|
||||
<div class="card-header card-header-primary">
|
||||
<h4 class="card-title">Plan de cours remis</h4>
|
||||
<p class="category">Combiens de plan de cours on été remis au courant de cette année d'instruction</p>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="content">
|
||||
<div class="row text-center">
|
||||
<div class="chart-container" style="position: relative; width:100%">
|
||||
<canvas id="chartLessonPlan"></canvas>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
var chartLessonPlan = $('#chartLessonPlan');
|
||||
var pieChartLessonPlan = new Chart(chartLessonPlan, {
|
||||
type: 'pie',
|
||||
data: {
|
||||
datasets: [{
|
||||
data: [{{$nbCourseUpToThisDay - ($nbCoursePlanDoneUTDP+$nbCoursePlanDoneAndCheckUTDP)}}, {{$nbCoursePlanDoneUTDP}}, {{$nbCoursePlanDoneAndCheckUTDP}}],
|
||||
backgroundColor: ['#f44336','#ff9800','#4caf50'],
|
||||
hoverBackgroundColor: ['#f66055','#ffad33','#5fb962']
|
||||
}],
|
||||
|
||||
// These labels appear in the legend and in the tooltips when hovering different arcs
|
||||
labels: ['Non-Remis', 'Remis non validé','Remis et validé']
|
||||
},
|
||||
options: {}
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user