Chart.js: Radar - Change Labels size

Created on 27 Jun 2016  路  7Comments  路  Source: chartjs/Chart.js

Hi, I search a lot on internet and cannot find the solutions.

I want to change the label font size from the radar sample exemple :

  • Running
  • Eating
  • Drinking
  • Sleeping
  • etc.

I tried "pointLabelFontSize" in all position without success

image 3

needs test case support

Most helpful comment

options: {
  scale: {
    pointLabels: {
      fontSize: 20
    }
  }
}

All 7 comments

@magicyoda please add a fiddle with what you tried

Here is the fiddle : https://jsfiddle.net/1z28s9aq/1/

on line #43, 44, I added without success
pointDot: false, pointLabelFontSize: 20

none of those two parameters are taken.. I cannot find official documentation about the fontSize and PointDot for labels

from http://stackoverflow.com/questions/31522001/chart-js-change-size-of-label-of-radar-chart

@magicyoda those options are for v1. I updated your fiddle here: https://jsfiddle.net/rpr2n9n7/2/

thanks a lot ! I tried this one also but certainly with error.. ;-)

@etimberg Hi, awesome answer there, I really wonder where did you get that information? I can't find any in the docs.

I need to change some configuration of the radar chart.
https://s19.postimg.org/67l7af6k3/config-radar.jpg

Here is my codepen https://codepen.io/AdiFahmi/pen/PKZQXJ

Thank you :)

options: {
  scale: {
    pointLabels: {
      fontSize: 20
    }
  }
}

@chenhailun2006 Thanks to you, I did it !

Was this page helpful?
0 / 5 - 0 ratings