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 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
Post a Comment