-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed axis range does not work with inverted axis #383
Comments
N.B. axis range clearing doesn't seem to be necessary when inverting the axis * added sample to illustrate use of inverted axes (and also fix) * added another (unrelated) sample to illustrate plotting of limits * minor code clean-up (usage of 'var', unavoidable PMD/SONARLINT suppression).
@ennerf thanks for reporting. I made a simple MVP sample `SimpleInvertedChartSample.java' to reproduce and fix this issue -- actually by removing a seemingly superfluous 'clear()' when inverting the axis. For the auto-ranged axes, these cleared values are re-written thus the feature you observed. This seems to solve the issue at least for the above case. Would you be willing to review the PR and check if there are other related corner use-cases? Thanks in advance. |
I can't test with my original application, but the examples work 👍 |
N.B. axis range clearing doesn't seem to be necessary when inverting the axis * added sample to illustrate use of inverted axes (and also fix) * added another (unrelated) sample to illustrate plotting of limits * minor code clean-up (usage of 'var', unavoidable PMD/SONARLINT suppression).
N.B. axis range clearing doesn't seem to be necessary when inverting the axis * added sample to illustrate use of inverted axes (and also fix) * added another (unrelated) sample to illustrate plotting of limits * minor code clean-up (usage of 'var', unavoidable PMD/SONARLINT suppression).
Version:
chart-fx 11.2.5
I'm trying to create a chart with a fixed range on an inverted axis. Creating a non-inverted one works
but as soon as I add inversion, both X and Y axes are fixed to
[-1, +1]
. It does not matter whether it is only one axis or in which order the methods are called.The text was updated successfully, but these errors were encountered: