[Chartjs]-How to set 2 y-axis title (and/or label) on chartjs?

2👍

There is no option for yAxes subtitles but you can use a secondary yAxis properly configured:

scales : {
    yAxes : [{
            scaleLabel : {
                display : true,
                labelString : "subtitle",
                fontStyle : 'italic'
            }
        }, {
            display : true,
            gridLines : {
                display : false,
                color : 'transparent'
            },
            ticks : {
                display : false
            },
            scaleLabel : {
                display : true,
                labelString : "My Chart title",
                fontStyle : 'bold',
                fontSize : 14
            }
        }
    ]
}

Check this fiddle: https://jsfiddle.net/beaver71/jg7Lgc43/

Leave a comment