Configuring point labels

Point labels are the labels that are displayed around the radial chart, at each angle line. Tick labels are placed inside the chart over the first angle line and have a backdrop. Point labels are configured with the scale.pointLabels property, which is an object with the following properties:

Property

Value

Description

display

true (default in radar) or false (default in polar area)

Displays or hides the axis labels

callback

Function; default is d=>d

Returns the value label for each point

fontColor, fontFamily, fontStyle

Strings containing CSS font attributes

Font attributes

fontSize

Number

Font size in pixels

Properties for point label configuration in radial axes

You can ...

Get Learn Chart.js now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.