Home › forums › Using CanvasJS › Is there a Bar100
I am looking for a Bar100, i.e works like Bar but the the y-axis goes from 1-100. So you can hover over a bar an it shows its actual value on the Bar, whist having the y-axis always show the percentage. So this means with one chart the viewer can see the data reals values an expressed as a percentage.
To put it another way its like StackedBar100 but I don’t have multiple sets of data and I dont want the bars to go completely from 0 -100.
I hope that is clear.
You can use labelFormatter in order to modify labels of axisY. Please, take a look at this jsFiddle.
Thankyou that is what i required.
Actually I was trying to implement it more like done on this page https://canvasjs.com/docs/charts/chart-options/axisy/label-formatter/ but having an issue since label-formatter is not in double quotes. Is it valid json for the value of label-fomatter to not be double quotes, or is this output not json.
No, defining function as the value for any key is not valid JSON. For further details, you can refer these links:
You must be logged in to reply to this topic.