You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tick labels can be passed as an array of strings to be represented as multiple lines on a chart. It is expected that the label is then centered vertically to the bar's position.
Current Behavior
The first string in the array is centered to the bar, and subsequent strings are stacked below the first one.
Possible Solution
Count the number of labels and change the initial offset for the labels to be higher by half the array length multiplied by the line height.
I'm not sure if I'm missing a setting or something (though I don't see why centering wouldn't be default behaviour)...
Context
I know I can draw my own labels with a homemade plugin but that is not really an option for me. I have situations where potentially dozens of charts are loaded so a solution like that would be potentially very heavy
Expected Behavior
Tick labels can be passed as an array of strings to be represented as multiple lines on a chart. It is expected that the label is then centered vertically to the bar's position.
Current Behavior
The first string in the array is centered to the bar, and subsequent strings are stacked below the first one.
Possible Solution
Count the number of labels and change the initial offset for the labels to be higher by half the array length multiplied by the line height.
Steps to Reproduce (for bugs)
https://jsfiddle.net/qL4rm9an/3/
I'm not sure if I'm missing a setting or something (though I don't see why centering wouldn't be default behaviour)...
Context
I know I can draw my own labels with a homemade plugin but that is not really an option for me. I have situations where potentially dozens of charts are loaded so a solution like that would be potentially very heavy
Environment
The text was updated successfully, but these errors were encountered: