Topic: Change chart font family
raha_001101 free asked 5 years ago
Hi how to change font family of chart's label and numbers?
Damian Gemza staff answered 5 years ago
Dear @raha_001101
Our Charts are port of Chart.js library. Here's the documentation for their Charts font options.
Please take a look at the below code:
public chartOptions: any = {
responsive: true,
legend: {
labels: {
fontColor: 'red',
defaultFontFamily: 'Arial'
}
}
};
Best Regards,
Damian
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- ForumUser: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: 7.5.1
- Device: PC
- Browser: FireFox
- OS: Windows 10
- Provided sample code: No
- Provided link: No