Skip to content

[BUG] Google font gets cut off from Radar canvas - line-height/padding issue? #4799

@msacchetti

Description

@msacchetti

Current Behavior

When i use a custom google font 'Hind' - the labels on the radar chart get cut off on the bottom. See screenshot attached. This happens with this font no matter what font size i set it at.

update - in firefox it cuts off the top - added another screenshot

This happens with "responsive: true" and "responsive:false"

Possible Solution

This only happens with certain fonts - i'm thinking maybe it has something to do with the default line height or baseline of the font.

I'm thinking adding a padding option to the pointLabel might fix it.

Steps to Reproduce (for bugs)

  1. Create radar chart
  2. Use 'Hind' font from google fonts

Context

I've tried every possible option in the documentation and it always happens.

Environment

  • Chart.js version: latest
  • Browser name and version: all browsers

Firefox:
screen shot 2017-09-28 at 4 20 02 pm

Chrome/Safari:
screen shot 2017-09-28 at 4 13 26 pm

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