116 lines
3.6 KiB
JavaScript
116 lines
3.6 KiB
JavaScript
|
jQuery(document).ready(function($) {
|
||
|
|
||
|
var canvasMonth = document.getElementById("month").getContext('2d');
|
||
|
var chartMonth = new Chart(canvasMonth, {
|
||
|
type: 'bar',
|
||
|
data: {
|
||
|
labels: ["Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre"],
|
||
|
datasets: [{
|
||
|
label: 'nombre de tableaux',
|
||
|
data: [13, 30, 40, 34, 50, 33, 27, 23, 18, 24, 35, 19],
|
||
|
backgroundColor: '#2589BD',
|
||
|
borderColor: '#187795',
|
||
|
borderWidth: 1
|
||
|
}]
|
||
|
},
|
||
|
options: {
|
||
|
scales: {
|
||
|
yAxes: [{
|
||
|
ticks: {
|
||
|
beginAtZero:true
|
||
|
}, gridLines: {
|
||
|
display:false
|
||
|
},
|
||
|
scaleLabel: {
|
||
|
display: true,
|
||
|
labelString: 'Tableaux'
|
||
|
}
|
||
|
}],
|
||
|
xAxes: [{
|
||
|
gridLines: {
|
||
|
display:false
|
||
|
}
|
||
|
}]
|
||
|
},
|
||
|
legend: {
|
||
|
display: false
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
|
||
|
var canvasMonth2 = document.getElementById("month2").getContext('2d');
|
||
|
var chartMonth2 = new Chart(canvasMonth2, {
|
||
|
type: 'bar',
|
||
|
data: {
|
||
|
labels: ["Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre"],
|
||
|
datasets: [{
|
||
|
label: 'nombre de tableaux',
|
||
|
data: [13, 30, 40, 34, 50, 33, 27, 23, 18, 24, 35, 19],
|
||
|
backgroundColor: '#2589BD',
|
||
|
borderColor: '#187795',
|
||
|
borderWidth: 1
|
||
|
}]
|
||
|
},
|
||
|
options: {
|
||
|
scales: {
|
||
|
yAxes: [{
|
||
|
ticks: {
|
||
|
beginAtZero:true
|
||
|
}, gridLines: {
|
||
|
display:false
|
||
|
},
|
||
|
scaleLabel: {
|
||
|
display: true,
|
||
|
labelString: 'Tableaux'
|
||
|
}
|
||
|
}],
|
||
|
xAxes: [{
|
||
|
gridLines: {
|
||
|
display:false
|
||
|
}
|
||
|
}]
|
||
|
},
|
||
|
legend: {
|
||
|
display: false
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
|
||
|
var canvasMonth3 = document.getElementById("month3").getContext('2d');
|
||
|
var chartMonth3 = new Chart(canvasMonth3, {
|
||
|
type: 'bar',
|
||
|
data: {
|
||
|
labels: ["Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre"],
|
||
|
datasets: [{
|
||
|
label: 'nombre de tableaux',
|
||
|
data: [13, 30, 40, 34, 50, 33, 27, 23, 18, 24, 35, 19],
|
||
|
backgroundColor: '#2589BD',
|
||
|
borderColor: '#187795',
|
||
|
borderWidth: 1
|
||
|
}]
|
||
|
},
|
||
|
options: {
|
||
|
scales: {
|
||
|
yAxes: [{
|
||
|
ticks: {
|
||
|
beginAtZero:true
|
||
|
}, gridLines: {
|
||
|
display:false
|
||
|
},
|
||
|
scaleLabel: {
|
||
|
display: true,
|
||
|
labelString: 'Tableaux'
|
||
|
}
|
||
|
}],
|
||
|
xAxes: [{
|
||
|
gridLines: {
|
||
|
display:false
|
||
|
}
|
||
|
}]
|
||
|
},
|
||
|
legend: {
|
||
|
display: false
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
});
|