Replies: 1 comment 3 replies
-
@Udemology "I know the padding is an option but because the baseline is set to middle it will Do you mean that you've found a way to add padding on the x scale labels below the bars? I was looking for just that. Specifically padding-top. Couldn't find a way to target those elements. I opened an issue and someone else tried too, but the issue still remains unsolved. I'd be interested in an answer to this question too. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I notice that the x scale labels cannot be controlled by the baseline position of "top", "middle" or "bottom".
I do see that by default it is set on "middle". I know the padding is an option but because the baseline is set to middle it will
add white space up and down.
Looking into the scale object I see the value is pre-defined. Is there a way to grab this?
I tried this but it does not grab the value. As it cannot recognize the value it will return an error.
I tried different scale callbacks but none worked: https://www.chartjs.org/docs/latest/axes/#callbacks
I guess I am missing something. I hope someone has an answer on this.
Beta Was this translation helpful? Give feedback.
All reactions