Forum > TAChart

Missing minors when LinearAxisTransform.scale=-1 [SOLVED]

(1/1)

AnthonyTekatch:
The minors grid is not visible when a LinearAxisTransform.scale=-1

Disabling that transform allows the minors to show up.

Would there be a way to have a negative scale transform and a minor grid at the same time?

A simple demo project is attached.

wp:
I guess this is a bug. Could you submit a but report so that it is not forgotten?

Giving the LinearAxisTransfor a negative Scale factor has the effect to invert the axis direction. Why don't you use the Inverted property of the axis? It should have the same effect, but - as I checked - the axis minors are not affected.

AnthonyTekatch:
I have submitted a bug report.

Thank you, I will check if inverted property can be used with my larger project.

AnthonyTekatch:

--- Quote from: wp on January 10, 2022, 03:50:21 pm ---Giving the LinearAxisTransfor a negative Scale factor has the effect to invert the axis direction. Why don't you use the Inverted property of the axis? It should have the same effect, but - as I checked - the axis minors are not affected.

--- End quote ---

I just checked that. Since I also have a right axis, inverting the left axis seems to also invert the right axis, and I think on the separate transform could be used to invert only the left axis.

AnthonyTekatch:
wp, Thank you for fixing this issue:
https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39546

Navigation

[0] Message Index

Go to full version