From 79441007b0a61fa835c5e14c8baa5f6ba428a298 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Thu, 13 Jan 2022 12:52:33 +0100 Subject: [PATCH] Fixed label display in 2 data graph. --- src/fr/devinsy/statoolinfos/htmlize/ChartHtmlizer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fr/devinsy/statoolinfos/htmlize/ChartHtmlizer.java b/src/fr/devinsy/statoolinfos/htmlize/ChartHtmlizer.java index d4d58bd..96b9b68 100644 --- a/src/fr/devinsy/statoolinfos/htmlize/ChartHtmlizer.java +++ b/src/fr/devinsy/statoolinfos/htmlize/ChartHtmlizer.java @@ -528,7 +528,7 @@ public class ChartHtmlizer { for (YearWeek timestamp = startTarget; !timestamp.isAfter(endTarget); timestamp = timestamp.plusWeeks(1)) { - LocalDate date = timestamp.atDay(DayOfWeek.MONDAY).plusWeeks(1); + LocalDate date = timestamp.atDay(DayOfWeek.MONDAY).plusDays(6); String timestampLabel = date.format(DateTimeFormatter.ofPattern("yyyy-MMM-dd", Locale.FRANCE)); chart.getLabels().add(timestampLabel);