Skip to content

Multiple multi-line data labels and vertical spacing/line-height #4292

@smogg

Description

@smogg

Creating 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

screen shot 2017-05-26 at 13 48 18

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions