Skip to content

Conversation

@Sniggi1337
Copy link

@Sniggi1337 Sniggi1337 commented Sep 5, 2025

Showing "..." for minor tick mark labels is not a suitable option for many cases so I added a switch to change that behavior.

@Sniggi1337 Sniggi1337 marked this pull request as ready for review September 5, 2025 08:02
@eselmeister
Copy link
Contributor

@Sniggi1337 Please adjust the copyright header to the year of editing:

from
Copyright (c) 2008, 2019 SWTChart project.
to
Copyright (c) 2008, 2025 SWTChart project.

I'll then test your PR.

@Sniggi1337
Copy link
Author

@eselmeister I adjusted the copyright text

@eselmeister
Copy link
Contributor

@Sniggi1337 Thanks for your PR. After inspecting it thoroughly, I think you are able to achieve your desired tick display even without changing the source code. The less options, the better.

Screenshot From 2025-09-10 14-14-40

When activating your setting to true:

Screenshot From 2025-09-10 14-13-04

We disabled displaying the same number to not confuse customers by repeating values. Instead, you can tweak the axis decimal format in the following way:

IPrimaryAxisSettings primaryAxisSettingsX = chartSettings.getPrimaryAxisSettingsX();
primaryAxisSettingsX.setDecimalFormat(new DecimalFormat(("0.00####"), new DecimalFormatSymbols(Locale.ENGLISH)));
...
secondaryAxisSettingsX.setDecimalFormat(new DecimalFormat(("0.00####"), new DecimalFormatSymbols(Locale.ENGLISH)));
Screenshot From 2025-09-10 14-16-49

@Sniggi1337
Copy link
Author

Sniggi1337 commented Sep 15, 2025

@eselmeister I agree, that the solution you suggested is better for this use case but my main problem was that there is no way to get rid of the "..." in certain situations. (I might not need/want the added accuracy in the axis label)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants