score:1

Accepted answer

in you data,

var avglinechartdata = {
        labels: ['1', '1', '1', '1', '1', '1', '1'],
        datasets: [{
            label: 'avg temperature (f)',
            bordercolor: window.chartcolors.green,
            backgroundcolor: window.chartcolors.green,
            fill: false,
            data: [
                65 - randomscalingfactor(),
                53 - randomscalingfactor(),
                58 - randomscalingfactor(),
                54 - randomscalingfactor(),
                62 - randomscalingfactor(),
                65 - randomscalingfactor(),
                74 - randomscalingfactor()
            ],
            yaxisid: 'y-axis-1',
        }]
    };

you set the yaxisid : 'y-axis-1'. but when you draw the chart, they are id: 'avg-y-axis-1'.


Related Query

More Query from same tag