Skip to content

Custom item placer with equidistant ticks #1004

Answered by Gowsky
emkayDauda asked this question in Questions
Discussion options

You must be logged in to vote

Hello, @emkayDauda.

Is there anyway to do this and just have the progression of (1,5,10, etc)?

Yes, it’s possible. You can do this by creating a HorizontalAxis.ItemPlacer implementation and overriding getLabelValues accordingly. The default placers produce a customizable but constant x step. Please note that this is covered in the documentation, with exact formulas provided.

A complete implementation isn’t necessary — you can delegate most of the logic to a default one and only make the required adjustments.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@emkayDauda
Comment options

@Gowsky
Comment options

Answer selected by emkayDauda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants