Fixed label display in 2 data graph.

This commit is contained in:
Christian P. MOMON 2022-01-13 12:52:33 +01:00
parent 3feafb815c
commit 79441007b0

View file

@ -528,7 +528,7 @@ public class ChartHtmlizer
{ {
for (YearWeek timestamp = startTarget; !timestamp.isAfter(endTarget); timestamp = timestamp.plusWeeks(1)) 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)); String timestampLabel = date.format(DateTimeFormatter.ofPattern("yyyy-MMM-dd", Locale.FRANCE));
chart.getLabels().add(timestampLabel); chart.getLabels().add(timestampLabel);