Multiple multi-line data labels and vertical spacing/line-height
See original GitHub issueCreating a horizontalBar
chart with many multiple-line labels on the left causes (visually) incorrect vertical spacing between them, if the chart is not tall enough. I’ve tried to properties inside beforeFit
/afterFit
callbacks but no success so far.
Current Behavior
https://jsfiddle.net/ncfs4164/6/
Expected Behavior
User should be able to manually set the spacing (or label’s lineHeight
?) between lines inside a multi-line label.
- Chart.js version: 2.5.0 (tho older versions yield the same result)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:7 (2 by maintainers)
Top Results From Across the Web
How to stack multi-line labels vertically in BoxLayout
If the Label s you added to MyWidget have fixed amount of text you can just set a specific value for MyWidget 's...
Read more >How To: Split labels from multiple fields to multiple lines in ...
In the Label Manager window, select the label class to be split to multiple lines and click Expressions....
Read more >Change the format of data labels in a chart
Tip: Make sure that only one data label is selected, and then to quickly apply custom data label formatting to the other data...
Read more >vertical align react native
To do vertical centering when using ScrollView with React Native, we can set the ... How to Align a Checkbox and Its Label...
Read more >10.10 Using Labels with Multiple Lines of Text
Multiline legend labels (left); With increased key height and reduced line spacing (. Figure 10.17: Multiline legend labels (left); With increased key ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Line-height issue related to https://github.com/chartjs/Chart.js/issues/4379 as well. Are there any plans to allow for configuration of line height? Has anyone found a solution?
Ideally we’d be able to vertically-align labels, but adjusting line height might also help with my issue:
Any workaround for this?