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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -