Skip to content

Possible to show axes labels at specific X-values outside of standard interval? #888

Answered by Gowsky
Tyler-Lopez asked this question in Questions
Discussion options

You must be logged in to vote

Hello, @Tyler-Lopez. Yes, this is possible. The default selection of label values is produced by HorizontalAxis.ItemPlacer.default. This function has parameters for spacing (which also depends on the value returned by getXStep) and offset.

To achieve the result you're looking for, you'll need a simple custom implementation. You can delegate to HorizontalAxis.ItemPlacer.default() and just override getLabelValues so that it adds 80 to the list returned by super.getLabelValues.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Tyler-Lopez
Comment options

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