Liraz Shaka Amir free asked 5 years ago


How can I change all the text color inside a chart?


Arkadiusz Idzikowski staff answered 5 years ago


Configure your chartOptions:

  public chartOptions: any = {
    responsive: true,
    scales: {
      xAxes: [{
        ticks: {
          fontColor: 'red',
        },
      }],
      yAxes: [{
        ticks: {
          fontColor: 'red',
        },
      }]
    },
    legend: {
      labels: {
        fontColor: 'red',
      },
    }
  };


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 7.4.3
  • Device: desktop
  • Browser: chrome
  • OS: windows
  • Provided sample code: No
  • Provided link: No
Tags