chart.js - chartjs: trying to rotate the y-Axis label -
i've tried things 'maxrotate' , 'rotate', placing them in scalelabel , on. couldn't find in docs. search results on google not of either.
var mychart = new chart(ctx, { type: 'line', data: chartdata, options: { elements: { point: { radius: 0 } }, scales: { yaxes: [{ ticks: { beginatzero:true }, scalelabel: { display: true, labelstring: 'mw', }, }], xaxes: [ { gridlines: { display: false , color: "#ffffff" }, ticks: { callback: function(tick, index, array) { return (index % 2) ? "" : tick; } } }] } }
});
Comments
Post a Comment