Skip to content

How do I show the last tick at the right end? #11325

Answered by Phil67ago
Phil67ago asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Udemology after looking deep into the source I come up with
beforeFit: function(axis) {
var l=axis.getLabels();
axis.ticks.push({ value:axis.max, label:l[axis.max] });
}

I don't have full control over the label source so this was easier solution than 'linear' with numeric values.

Thanks!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Phil67ago
Comment options

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