Chartjs-Angular using PrimeNG charjs problem with font colors

0👍

You are using V2 syntax while using V3, there are some major breaking changes between these 2 version, for all changes please read the migration guide for all changes.

To resolve your issue you options need to look like this:

options: {
  scales: {
    x: {
      ticks: {
        color: 'white'
      }
    },
    y: {
      ticks: {
        color: 'white'
      }
    }
  },
  plugins: {
    legend: {
      labels: {
        color: 'white'
      }
    }
  }
}

Leave a comment