-
See: Seems like 'includeBounds: true' show do it... |
Beta Was this translation helpful? Give feedback.
Answered by
Phil67ago
Jun 5, 2023
Replies: 1 comment 1 reply
-
Hi @Phil67ago 'includeBounds' should be used but your x scale labels are strings and only applies to numeric values and dates and the default x scale is category scale. Do the following: That should work. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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!