I want to display the dateTimeLabel as 20.03 for (20. March) so I need to set month to %m but I can't get it working.
below is some code:
chart.getXAxis() .setType(Axis.Type.DATE_TIME) .setTickInterval(24 * 3600 * 1000) // one day .setDateTimeLabelFormats(new DateTimeLabelFormats() .setMonth("%e. %m") );
but it wont work, I still have Mar as month.
THX 4 any help
and i solved this thread too ;D
as i show "days" as ticks, my many tries to change the format all didn't work.
if i just switch to format the day-format it works.
for example with: .setOption("dateTimeLabelFormats/day", "%d.%m")
:)
Log in to post a comment.
I want to display the dateTimeLabel as 20.03 for (20. March) so I need to set month to %m
but I can't get it working.
below is some code:
chart.getXAxis()
.setType(Axis.Type.DATE_TIME)
.setTickInterval(24 * 3600 * 1000) // one day
.setDateTimeLabelFormats(new DateTimeLabelFormats()
.setMonth("%e. %m")
);
but it wont work, I still have Mar as month.
THX 4 any help
and i solved this thread too ;D
as i show "days" as ticks, my many tries to change the format all didn't work.
if i just switch to format the day-format it works.
for example with:
.setOption("dateTimeLabelFormats/day", "%d.%m")
:)