I need to show a percent sign (“%”) in yAxes and in tooltips. The standard way is to write a callback function in options, but I don’t know how to do it in PowerShell. Basically I need the PowerShell version of this:
options: {
scales: {
yAxes: [{
ticks: {
// Include a percent sign in the ticks
callback: function(value, index, values) {
return value + ’ %';
}
}
}]
}
}
Is it possible? An example would be much appreciated, thanks!