2021-01-24 14:43:02 +00:00
|
|
|
jQuery(document).ready(function($)
|
|
|
|
{
|
2021-01-09 00:11:40 +00:00
|
|
|
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',
|
2021-02-10 17:39:46 +00:00
|
|
|
data: [11, 30, 40, 34, 50, 33, 27, 24, 17, 26, 37, 19],
|
2021-01-09 00:11:40 +00:00
|
|
|
backgroundColor: '#2589BD',
|
|
|
|
borderColor: '#187795',
|
|
|
|
borderWidth: 1
|
|
|
|
}]
|
|
|
|
},
|
|
|
|
options: {
|
|
|
|
scales: {
|
|
|
|
yAxes: [{
|
|
|
|
ticks: {
|
2021-02-10 17:39:46 +00:00
|
|
|
beginAtZero: true
|
2021-01-09 00:11:40 +00:00
|
|
|
}, gridLines: {
|
2021-02-10 17:39:46 +00:00
|
|
|
display: false
|
2021-01-09 00:11:40 +00:00
|
|
|
},
|
|
|
|
scaleLabel: {
|
|
|
|
display: true,
|
|
|
|
labelString: 'Tableaux'
|
|
|
|
}
|
|
|
|
}],
|
|
|
|
xAxes: [{
|
|
|
|
gridLines: {
|
2021-02-10 17:39:46 +00:00
|
|
|
display: false
|
2021-01-09 00:11:40 +00:00
|
|
|
}
|
|
|
|
}]
|
|
|
|
},
|
|
|
|
legend: {
|
|
|
|
display: false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2021-02-10 17:39:46 +00:00
|
|
|
var canvasYear = document.getElementById("year").getContext('2d');
|
|
|
|
var chartYear = new Chart(canvasYear, {
|
2021-01-09 00:11:40 +00:00
|
|
|
type: 'bar',
|
|
|
|
data: {
|
2021-02-10 17:39:46 +00:00
|
|
|
labels: ["1956 - 1959", "1960 - 1969", "1970 - 1979", "1980 - 1989", "1990 - 1999", "2000 - 2009", "2010 - 2016"],
|
2021-01-09 00:11:40 +00:00
|
|
|
datasets: [{
|
|
|
|
label: 'nombre de tableaux',
|
2021-02-10 17:39:46 +00:00
|
|
|
data: [24, 16, 7, 57, 117, 112, 52],
|
2021-01-09 00:11:40 +00:00
|
|
|
backgroundColor: '#2589BD',
|
|
|
|
borderColor: '#187795',
|
|
|
|
borderWidth: 1
|
|
|
|
}]
|
|
|
|
},
|
|
|
|
options: {
|
|
|
|
scales: {
|
|
|
|
yAxes: [{
|
|
|
|
ticks: {
|
2021-02-10 17:39:46 +00:00
|
|
|
beginAtZero: true
|
2021-01-09 00:11:40 +00:00
|
|
|
}, gridLines: {
|
2021-02-10 17:39:46 +00:00
|
|
|
display: false
|
2021-01-09 00:11:40 +00:00
|
|
|
},
|
|
|
|
scaleLabel: {
|
|
|
|
display: true,
|
|
|
|
labelString: 'Tableaux'
|
|
|
|
}
|
|
|
|
}],
|
|
|
|
xAxes: [{
|
|
|
|
gridLines: {
|
2021-02-10 17:39:46 +00:00
|
|
|
display: false
|
2021-01-09 00:11:40 +00:00
|
|
|
}
|
|
|
|
}]
|
|
|
|
},
|
|
|
|
legend: {
|
|
|
|
display: false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2021-02-10 17:39:46 +00:00
|
|
|
var canvasDimension = document.getElementById("dimension").getContext('2d');
|
|
|
|
var chartDimension = new Chart(canvasDimension, {
|
2021-01-09 00:11:40 +00:00
|
|
|
type: 'bar',
|
|
|
|
data: {
|
2021-02-10 17:39:46 +00:00
|
|
|
labels: ["< 20cm", "20cm - 29cm", "30cm - 39cm", "40cm - 49cm", "50cm - 59cm", "60cm - 69cm", "70cm - 79cm", "80cm - 89cm", "90cm - 99cm", ">= 100cm"],
|
2021-01-09 00:11:40 +00:00
|
|
|
datasets: [{
|
|
|
|
label: 'nombre de tableaux',
|
2021-02-10 17:39:46 +00:00
|
|
|
data: [1, 60, 54, 97, 50, 54, 11, 2, 1, 2],
|
2021-01-09 00:11:40 +00:00
|
|
|
backgroundColor: '#2589BD',
|
|
|
|
borderColor: '#187795',
|
|
|
|
borderWidth: 1
|
|
|
|
}]
|
|
|
|
},
|
|
|
|
options: {
|
|
|
|
scales: {
|
|
|
|
yAxes: [{
|
|
|
|
ticks: {
|
2021-02-10 17:39:46 +00:00
|
|
|
beginAtZero: true
|
2021-01-09 00:11:40 +00:00
|
|
|
}, gridLines: {
|
2021-02-10 17:39:46 +00:00
|
|
|
display: false
|
2021-01-09 00:11:40 +00:00
|
|
|
},
|
|
|
|
scaleLabel: {
|
|
|
|
display: true,
|
|
|
|
labelString: 'Tableaux'
|
|
|
|
}
|
|
|
|
}],
|
|
|
|
xAxes: [{
|
|
|
|
gridLines: {
|
2021-02-10 17:39:46 +00:00
|
|
|
display: false
|
2021-01-09 00:11:40 +00:00
|
|
|
}
|
|
|
|
}]
|
|
|
|
},
|
|
|
|
legend: {
|
|
|
|
display: false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|