Skip to content

[BUG] 2.7.3 hides/clips part of chart #6094

Description

@rheupler

This is related to #4790 that has since been closed, but is happening again in 2.7.2 - 2.7.3. In some cases, the max point will get cut off on the top of the chart.

Expected Behavior

screen shot 2019-02-26 at 2 55 36 pm

Current Behavior

screen shot 2019-02-26 at 2 53 45 pm

In 2.7.1, I can fix this by setting the lineHeight on the title to 1 instead of the default 1.2. This doesn't work in any higher versions.

Possible Solution

Not sure what a solution would be for this, but in 2.7.1 I can get it to work by setting a lineHeight on the title (bandaid solution)

Steps to Reproduce (for bugs)

This reproduction can be difficult since it's only happening on some screen sizes. I'm plotting values at the max. The screen width of the above screenshot was at 467px.

Environment

  • Chart.js version: 2.7.3
  • Browser: Chrome: 71.0.3578.98

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions