[Chartjs]-Show date on xAxes without labels

0👍

Under the data property you can define a labels property, which is an array of labels, which can be a string with various content.

For example:

const labels = items.map(item => {
    // return the desired label for each item here
})

// ...

new Chart(context, {
  data: {
    labels: labels
    // ...
  }
  // ...
}

Leave a comment