Menu

Can't format the dateTimeLabel

Len5inG
2013-03-20
2013-03-20
  • Len5inG

    Len5inG - 2013-03-20

    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

     
  • Len5inG

    Len5inG - 2013-03-20

    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.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.