QML Chart Y-axis padding
Unsolved
QML and Qt Quick
-
I successfully achieved an auto-scalable Y Axis, changing its maximum value each time. The problem is that when max value changes magnitude, let say from 100 to 1000, the X axis shrinks to make spaces for new bigger (or smaller) labels.
I tried to left-pad the label but it does not work with white spaces.
E.g.
ValueAxis { id: axisY labelFormat: "%05d" // zero padding, works } ValueAxis { id: axisY labelFormat: "%5d" // space padding, not works, only 1 space is printed }
Is there anyone which achieved this?
For me is ok also to add a fixed space between the axis title and the labels, if it is possible, without using the labelFormat property. -
UP! Has anyone managed to solve this problem?