Chart JS 2

Chart 1

chart 2

Data entry

Add new data:




document.getElementById(‘randomizeData’).addEventListener(‘click’, function() { var zero = Math.random() < 0.2 ? true : false; barChartData.datasets.forEach(function(dataset) { dataset.data = dataset.data.map(function() { return zero ? 0.0 : randomScalingFactor(); }); }); window.myBar.update(); });