Amélioration rendu statistiques
This commit is contained in:
parent
7bae10238b
commit
095b64c9db
@ -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 {
|
||||
|
@ -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],
|
||||
|
Loading…
x
Reference in New Issue
Block a user