Chartjs-Chart options in angularJs (NodeRed Charts)

0👍

My installation of node red isn’t using the latest and greatest angular-chartjs library, going through some of the ancient documentation I’ve found the ticks option which allows you to set the max axis, this was changed in Version 3 of chartJS.

Solution below:

ui= {
    options: {
        scales: {
            xAxes: [{
                stacked: true
            }],
            yAxes: [{
                stacked: true,
                ticks: {
                    max: 60,
                    min: -140
                }
            }]
        }
    }    
}

Leave a comment