Fixed week metric graphic label.
This commit is contained in:
parent
8342850d13
commit
909cc17a8b
1 changed files with 1 additions and 1 deletions
|
@ -748,7 +748,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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue