Topic: Setting Chart background
itay pro asked 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' } }], } };
itay pro answered 6 years ago
Damian Gemza staff answered 6 years ago
public chartOptions: any = { responsive: true, legend: { labels: { fontColor:'red' } } };
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- ForumUser: 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
itay pro commented 6 years ago
How can I set the labels colors and fonts ? Is there a schema for the chart options ?