February 2019
Beginner to intermediate
284 pages
6h 20m
English
Local configuration options override global default configurations, which can be configured using the Chart.defaults.global object. You can configure properties, such as fonts, colors, axes, gridlines, ticks, animations, tooltips, and element properties, either globally (for all charts), or locally (for a specific chart).
To specify a global font family, you can use the following code:
Chart.defaults.global.defaultFontFamily = "Helvetica Neue";
This will affect all of the text in the chart. You can also define defaults for specific text elements by changing the properties, such as Chart.defaults.global.legend, Chart.defaults.global.title, and many more, as follows:
Chart.defaults.global.legend.fontSize = 10; // all legend ...
Read now
Unlock full access