Amélioration rendu statistiques

This commit is contained in:
Jean-Marie Favreau 2025-04-29 11:41:45 +02:00
parent 7bae10238b
commit 095b64c9db
2 changed files with 17 additions and 2 deletions

View File

@ -677,10 +677,12 @@ header .remarque {
display: inline-block;
}
.highlight {
rect.ch-subdomain-bg.highlight {
color: var(--primary);
font-weight: bold;
font-style: italic;
stroke-width: 2;
stroke: red !important;
}
.search .description {

View File

@ -132,7 +132,14 @@
},
theme: (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) ? "dark" : "light",
itemSelector: '#cal-heatmap-startday',
animationDuration: 0
animationDuration: 0,
scale: {
color: {
type: 'linear',
domain: [0, Math.max(...data_startday.map(d => d.value))],
range: ['#f0fefe', '#005e5e'],
},
}
};
// create first heatmap
@ -146,6 +153,12 @@
options.itemSelector = '#cal-heatmap-creation';
options.date.start = new Date("{{ first_by_creation.isoformat }}");
options.data.source = data_creation;
options.scale.color = {
type: 'linear',
domain: [0, Math.max(...data_creation.map(d => d.value))],
range: ['#fdf5f5', '#5e0000'],
};
const cal_creation = new CalHeatmap();
cal_creation.paint(options, [
[CalendarLabel, calendarlabel],