[Chartjs]-How to set ChartJS Axis label with PrimeFaces

1๐Ÿ‘

โœ…

My JS function was not correct. The below code is now working as intended: y axis label is being shown.

function extender1() {

               var options = {

               options: {
                      scales: {
                        yAxes: [{
                          scaleLabel: {
                            display: true,
                            labelString: 'Order amount'
                          }
                        }],
                      }
                    }                  
            };
               $.extend(true, this.cfg.config, options);
        };

Leave a comment