Add multi chart with multi axes label using chart js

1👍

You are initializing the scale wrong maybe this can help

scales: {
         "y-axis-2":
            {
                type: "linear",
                display: true,
                position: "left",
                gridLines:{
                    display: false
                },
                labels: {
                    show:true,

                }
            },  "y-axis-1": {
                type: "linear",
                display: true,
                position: "right",
                gridLines:{
                    display: false
                },
                labels: {
                    show:true,

                }
            }
        }

https://www.chartjs.org/docs/latest/samples/line/multi-axis.html

Leave a comment