fix imports js
This commit is contained in:
parent
ada9fa4029
commit
f785e67f49
6 changed files with 163 additions and 42 deletions
|
@ -97,7 +97,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||
align: 'center',
|
||||
color: '#000',
|
||||
display: true,
|
||||
font: { weight: 'bold' },
|
||||
font: { weight: '400', size : "1rem" },
|
||||
formatter: (value, context) => {
|
||||
return context.dataset.data[context.dataIndex].label;
|
||||
}
|
||||
|
@ -107,7 +107,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||
label: 'Régression linéaire',
|
||||
type: 'line',
|
||||
data: regressionLine,
|
||||
borderColor: 'rgba(0, 0, 0, 0.7)',
|
||||
borderColor: 'rgba(162, 255, 40, 0.7)',
|
||||
borderWidth: 2,
|
||||
pointRadius: 0,
|
||||
fill: false,
|
||||
|
@ -135,7 +135,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||
return [
|
||||
`${d.label}`,
|
||||
`Population: ${d.x.toLocaleString()}`,
|
||||
`Lieux / 1000 hab: ${d.y.toFixed(2)}`,
|
||||
`Lieux / hab: ${d.y.toFixed(2)}`,
|
||||
`Total lieux: ${Math.round(Math.pow(d.r / 2, 2))}`,
|
||||
`Complétion: ${d.completion}%`
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue