title: how to set color of label in chartjs?
body: <p>I created a chart with chartJS and I would like to change the color of data label and date. What's wrong?</p>
  <pre class="lang-js prettyprint-override"><code>const labels = &lt;?php echo json_encode($Date) ?&gt;;
  
  const data = {
      labels: labels,
      datasets: [{
          label: 'Données Vent',
          backgroundColor: 'gray',
          borderColor: 'rgb(255, 99, 132)',
          data: &lt;?php echo json_encode($Vent) ?&gt;,
          data: &lt;?php echo json_encode($Rafale) ?&gt;,
      }]
  };
  
  const config = {
      type: 'line',
      data: data,
      options: {
          color: 'white', //couleur du titre graphique
          scales: {
              y: {
                  color:&quot;white&quot;,
                  beginAtZero: true
              }
          }
      },
  };
  
  const myChart = new Chart(document.getElementById('myChart'), config);
  </code></pre>