score:2

Accepted answer

as per issue at github repository for chartjs https://github.com/chartjs/chart.js/issues/5667

you may need to adjust your data in following way:

dataopen1.push({
          x: date_corrected,
          y: value.wind_speed
          d: value.wind_deg
});

and then you can modify using datalable plugin your function as

rotation: function(ctx) { return ctx.dataset.data[ctx.dataindex].d; }

Related Query

More Query from same tag