javascript - Add multiline labelString to yAxes Chart.js -


i have not found questions on site addressing question, nor documentation on how answer it...

how make y-axis in chart made latest version of chart.js library accept multi-line string labelstring? i've tried

"percent of users <br> can come today" 

as

"percent of users \n can come today"  

and

"percent of users &#13; can come today". 

here code, can add more of code if necessary:

            yaxes: [{                 ticks: {                     beginatzero: true,                     max: 100,                     stepsize: 25,                 },                 scalelabel: {                     display: true,                     fontsize: 14,                     labelstring: "percent of users \n can come today",                 }             }] 

creating separate grid side of graph worked.


Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -