Topic: Setting Chart background
Damian Gemza staff answered 6 years ago
public chartOptions: any = { responsive: true, legend: { labels: { fontColor:'red' } } };
mdb2 pro answered 6 years ago
Damian Gemza staff answered 6 years ago
public chartOptions: any = { responsive: true, scales: { xAxes: [{ gridLines: { color: 'rgba(100, 100, 100, 1.0)' }, scaleLabel: { display: true, labelString: 'Label 2', fontColor: 'blue' } }], yAxes: [{ gridLines: { color: 'rgba(100, 100, 100, 1.0)' }, scaleLabel: { display: true, labelString: 'Label 1', fontColor: 'red' } }], } };
mdb2 pro answered 6 years ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: 6.2.2
- Device: NA
- Browser: NA
- OS: NA
- Provided sample code: No
- Provided link: No
mdb2 pro commented 6 years ago
How can I set the labels colors and fonts ? Is there a schema for the chart options ?