Chartjs-Chart.js renders outside div and canvas

0👍

You did not change the that is why the second graph did not generate.

var ctx2 = document.getElementById("results-graph2");

Also you can provide background and border like this.

            backgroundColor: ['rgba(0,0,0,1)'],
            borderColor: ['rgba(0,0,0,1)']

JSFiddle: here

Leave a comment