score:1

Accepted answer

Chart.js lets you add a line to a bar chart, but not a bar to a line chart. So you need to set the chart type to bar, e.g.:

var config = {
  type: 'line', // <-- change to 'bar'!
  ...

Related Query