February is missing from QDateTime axis in QML chart view
-
I have created a QML chart
ChartView { id: chart anchors.fill: parent antialiasing: true ValueAxis { id: axisY tickCount: 3 } DateTimeAxis{ id: xTime tickCount: 6 }But February month is getting missed from X axis and one other month is getting doubles. How to show to show it correctly.
Note : X axis values are added dynamiccaly
-
I have created a QML chart
ChartView { id: chart anchors.fill: parent antialiasing: true ValueAxis { id: axisY tickCount: 3 } DateTimeAxis{ id: xTime tickCount: 6 }But February month is getting missed from X axis and one other month is getting doubles. How to show to show it correctly.
Note : X axis values are added dynamiccaly
@Refi
February is not a very nice month :)
Seriously, I think you can assume those ticks are about every 30 days. Which can skip February, and fall twice in May.
That must be what happens with thetickCount: 6spread across about six months.
I don't know how you do it, but you need to change that somehow e.g. to be on the 1st of every month, if you can. -
@Refi
February is not a very nice month :)
Seriously, I think you can assume those ticks are about every 30 days. Which can skip February, and fall twice in May.
That must be what happens with thetickCount: 6spread across about six months.
I don't know how you do it, but you need to change that somehow e.g. to be on the 1st of every month, if you can.