<!DOCTYPE html>
stringlengths
2
14.2k
alt=Centre d'Accès Sécurisé Distant aux données (CASD)" title="Centre d'Accès Sécurisé Distant aux données (CASD)" />
/static/img/footer/data.gouv.png
alt=site data.gouv" title="site data.gouv" />
/static/img/footer/Service_public.png
alt=Services Publics +" title="Services Publics +" />
/fr/information/2008466
data-i18n=footer.liens.mentions">Mentions légales et crédits</a>
/fr/information/2386135
data-i18n=footer.liens.accessibilite">Accessibilité : partiellement conforme</a>
/fr/information/5894637
>Accès sourds et malentendants</a> </li> <li class=lien-footer">
/fr/information/2381939
data-i18n=footer.liens.securite">Sécurité</a>
/fr/plan-du-site
data-i18n=footer.liens.plan">Plan du site</a>
</div>
</footer>
<a href="#" class="sticky-top"><span data-i18n="footer.sticky-top.texte" class="sticky-text">Haut de page</span></a>
<script>
window.addEventListener("load", async function () {
const isFrench = document.documentElement.lang !== "en";
Highcharts.setOptions({
lang: {
thousandsSep: "\u00A0",
numericSymbols: undefined, // disable 100k, 1M, etc
decimalPoint: isFrench ? "," : ".",
},
});
const bimester = isFrench
? { label: "bimestre", abbr: "bim." }
: { label: "bimester", abbr: "bim." };
const quarter = isFrench
? { label: "trimestre", abbr: "trim." }
: { label: "quarter", abbr: "qtr." };
const getBimester = (date) => {
return Math.floor(date.getUTCMonth() / 2) + 1;
};
const getQuarter = (date) => {
return Math.floor(date.getUTCMonth() / 3) + 1;
};
const addSuffix = function (pos) {
switch (pos) {
case 1:
return pos + (isFrench ? "er " : "st ");
case 2:
return pos + (isFrench ? "e " : "nd ");
case 3:
return pos + (isFrench ? "e " : "rd ");
default:
return pos + (isFrench ? "e " : "th ");
}
};
Highcharts.dateFormats.clib = function (timestamp) {
const date = new Date(timestamp);
return addSuffix(getBimester(date)) + bimester.abbr;
};
Highcharts.dateFormats.Clib = function (timestamp) {
const date = new Date(timestamp);
return addSuffix(getBimester(date)) + bimester.label;
};
Highcharts.dateFormats.t = function (timestamp) {
const date = new Date(timestamp);
return getQuarter(date) + "";
};
Highcharts.dateFormats.qlib = function (timestamp) {
const date = new Date(timestamp);
return addSuffix(getQuarter(date)) + quarter.abbr;
};
Highcharts.dateFormats.Qlib = function (timestamp) {
const date = new Date(timestamp);
return addSuffix(getQuarter(date)) + quarter.label;
};
const graphs = document.querySelectorAll("[id^='highchart']");
for (const graph of graphs) {
const response = await fetch(graph.getAttribute("data-graphique"));
const xml = await response.text();
const options = await generateChartOptions(xml);
if (options?.chart.type === 'map') {
Highcharts.mapChart(graph.getAttribute("id"), options);
} else {
Highcharts.chart(graph.getAttribute("id"), options);
}
}
});
</script>
</body>
</html>