I don't really know how to properly fix this, but experimentally I have found the value of the offset multiplier which fixes the issue of labels being cut out. It eats a little bit more space when no decimal places are present, but at least it works fine otherwise. I understand that this is a dirty hack, so no hard feelings from my side if it doesn't make it upstream.
Actually, after creating this PR, I think I've found a less dirty hack by just adding one symbol worth of space similar to how the charting library does it. I updated the code.
I don't really know how to properly fix this, but experimentally I have found the value of the offset multiplier which fixes the issue of labels being cut out. It eats a little bit more space when no decimal places are present, but at least it works fine otherwise. I understand that this is a dirty hack, so no hard feelings from my side if it doesn't make it upstream.
Screenshot before:![2023-07-22_12-40_1](https://github.com/oliexdev/openScale/assets/221355/cb56780f-41c6-4b4c-98e9-80f0c97a5747)
Screenshots after:
![2023-07-22_12-40](https://github.com/oliexdev/openScale/assets/221355/bef6086b-fb2f-460b-b182-769678ffb29b)