[Timeline] How to put days in second scale with year as main scale?

As the title says, how do I put days (1-31) at the second scale? With current year as the main scale. Or vice versa.

Currently it’s just showing 2022’s first day which is 01. If I change second scale’s x_date to %D it just shows random Mon-Sun days.

Appreciate the help!

Hello @Ian_Pee ,

I may mistake with suggestions, as don’t know the exact config of your timeline, but basically if you need to display X-axis in days, you should use the x_unit with the day value:
https://docs.dhtmlx.com/scheduler/api__scheduler_createtimelineview.html#:~:text=x_unit%20-%20(minute%2C%20hour%2C%20day%2C%20week%2C%20month%2C%20year)%20the%20measuring%20unit%20of%20the%20X-Axis.%20By%20default%2C%20’minute’

If it’s not your case, could you please provide the exact config of your timeline view?

1 Like