[Chartjs]-Show text in both y axis in dual axis chart js

2👍

You need to set the scaleLabel property for the axis, like so

    ...
    id: "y-axis-1",
    scaleLabel: {
        display: true,
        labelString: "Cost"
    }
    ...

However you can’t control the orientation or do a vertical layout by adjusting the options.


Fiddle – http://jsfiddle.net/r01tatnq/

Leave a comment