Chartjs-Chart.js – Stacked bar chart with values from the inputs

1πŸ‘

βœ…

The input fields should assign to each dataset respectively.

function updateChart2() {
  chart2.data.datasets[0].data = [data1a.value];
  chart2.data.datasets[1].data = [data2a.value];
  chart2.update();
}

Demo @ StackBlitz

Leave a comment