Skip to content

Change fontSize for radar type point label #3861

@antonk52

Description

@antonk52

I am generating a radar chart with some sample data, I need to increase the size of the font for the point labels, I have searched the documentation for all occurrences of fontSize and tried all of them, but the size of point label title remains the same. I also found this questions on stackoverflow, but when I copy and paste it with my example it logs an error into a console

Uncaught TypeError: (intermediate value).Radar is not a function

Expected Behavior

I would expect to be able to pass another key called fontSize that will affect the size of the point label title.

Current Behavior

The size of the the point labels remains the same.

Possible Solution

I would imagine passing another key to labels called fontSize with a number of what size you want the labels to be would be an ultimate and intuitive solution.

Steps to Reproduce (for bugs)

CODEPEN example

the link is fairly self explanatory, but just to mention I did try to edit
Chart.defaults.global.defaultFontSize
Chart.defaults.global.tooltips.titleFontSize
Chart.defaults.global.title.fontSize

Context

I am generating a graph which then turn into an image that will be included in a pdf. The pdf has to look like a given design and I am really close to it, but the size of the point labels.

Environment

  • Chart.js version: 2.4.0
  • Browser name and version: Chrome 55 and Safari 10.0.3
  • Link to your project: project is developed locally

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions