Chart color

Liraz Shaka Amir asked 6 years ago

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


Arkadiusz Idzikowski staff answered 6 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
  • User: 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