[Chartjs]-Can I use a custom data format when using Vue + Chartjs

1👍

x and y are points in space, dataset not allow change of name.

Nearest option comes here: https://www.chartjs.org/docs/latest/developers/updates.html#updating-options

But why go so far if you can do your problem fixed with a computed property:

computed:{
   transformData(){
      return this.data.map(el=> { return {x:el.date, y:el.date} })
   }
}

Leave a comment