Skip to content
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

add new omit_first_ticklabels and omit_last_ticklabels property to axes #4675

Open
gvwilson opened this issue Jul 17, 2024 · 2 comments
Open
Labels
cs customer success feature something new P3 not needed for current cycle

Comments

@gvwilson
Copy link
Contributor

We would like to make use of an omit_first_ticklabels and 'omit_last_ticklabels' property on the axes. The property should allow to hide the first X or last X ticklabels, which would otherwise appear. This can be used to create cleaner and more refined print charts in scenarios, where the last or first label is not desirable or to close to the outer border of the chart to look visually appealing.

The same effect could be achieved with the new labelalias property by replacing the last or first label with an empty string, but the proposed method would be more intuitive and would also work well for automated data-updates, which might influence the range.

The new properties should take integers as input.

@gvwilson gvwilson added feature something new cs customer success labels Jul 17, 2024
@gvwilson gvwilson self-assigned this Jul 17, 2024
@gvwilson
Copy link
Contributor Author

Just to make sure we've explored our options, I wonder if labeldomain would be better for unknown ranges, so rather than "omit the first label" you could say "show no label on the first 10% of the axis."

@gvwilson
Copy link
Contributor Author

Granted, that would be an option. If it is significantly easier for you to implement, I can discuss it with the users as an alternative.

We're thinking from the perspective of a graphical user interface, where the user can click the outer ticks away. Here it is a bit more intuitive to remove one tick per click, but we could also make it a text field into which the user can enter a percentage. It feels a bit less elegant to me though.

It would be great, if we could implement this property once for ticks and once for ticklabels.

@gvwilson gvwilson removed their assignment Aug 2, 2024
@gvwilson gvwilson added the P3 not needed for current cycle label Aug 12, 2024
@gvwilson gvwilson changed the title feat: add new omit_first_ticklabels and omit_last_ticklabels property to axes add new omit_first_ticklabels and omit_last_ticklabels property to axes Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cs customer success feature something new P3 not needed for current cycle
Projects
None yet
Development

No branches or pull requests

1 participant