I looked through the documentation and similar questions here, but I don't seem to find a working solution for my problem.
I am using Chart.js v.2.1.6, and I have a chart with percentage values ββstored as numbers (already multiplied by 100). I need both the y-axis labels and tooltips to display the % sign after the values.
Can someone shed some light on this?
Here you have my code:
var data = { "labels": ["Label1", "Label2", "Label3", "Label4", "Label5"], "datasets": [{ "label": "Variation", "data": ["56", "-82.3", "25.7", "32.2", "49.99"], "borderWidth": 1, "backgroundColor": "rgba(231, 76, 60, 0.2)", "borderColor": "rgba(231, 76, 60, 1)" }] }; var myBarChart = new Chart($("#myCanvas"), { type: 'bar', data: data, maintainAspectRatio: false });
And the fiddle: https://jsfiddle.net/tdjk3ncs/
EDIT: SOLVED
I found a solution thanks to miquelarranz, found an updated script:
https://jsfiddle.net/tdjk3ncs/7/