I am using charts.js in one of the aspx page. Everything works except for one issue. Consider the code below,
window.myBar = new Chart(context).Bar(chData, {
showScale: true,
scaleLabel : "<%= Number(value).toFixed(0).replace('.', ',') + ' %'%>",
});
This works fine in a plain html page, but when used on the aspx page, the compiler tries to evaluate the code as aspx due to the <%= syntax that is used in aspx and it creates problems. Is there a way I can use this javascript code in aspx?
<%=should come in the actual HTML document?