I want to use HTML
inside xAxes.ticks.callback
, but when I do it:
xAxes: [{
ticks: {
callback: (tickValue, index, ticks) => {
let tickValueNew = Math.abs(tickValue) + "%";
tickValueNew += "<br>\n" + (100 - Math.abs(tickValue));
return tickValueNew;
},
},
}]
It doesn't work it prints <br>
on the page, how to change this?
for a new line, what is the use \n there? – Masood Mar 14 '21 at 11:51