简体   繁体   中英

Change `font-family` in Angular Chart.js

如何在Angular Chart中更改font-family并设置标签的自定义字体?

You can set a custom font-family for the chart, in the following way ...

Chart.defaults.global.defaultFontFamily = 'Verdana';

add this, at the beginning of your script (before initializing the app)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM