Closed julien4215 closed 6 months ago
There is a complicated logic to handle these titles. So the point is that we try to show round values such as 10, 20, 30, 50, 100, 200, 300, 500, 1k, 2k, 3k, 5k...
And we use these values based on the baseline
that we have. The default value for baselineX
and baselineY
is zero, and if you change the baselineX to offset, your issue is fixed.
Add this line of code baselineX: offset.toDouble(),
in line 34 of your sample.
I can't count it as a bug actually, so I mark it as a question and I think your issue is resolved. If you have any issues, please let me know here
Describe the bug The sides titles are not placed the same way if I translate the x values (see both screenshot).
To Reproduce Try with
offset=0
first. Then withoffset=5
.Screenshots In the second screenshot the x values are translated of 5 but the side titles are placed differently. I was expecting side titles to be placed at the postion (5, 15, 25, 35) in the second second screenshot.
Versions