color(dsColor).alpha(0.5).rgbString(),
                borderColor: dsColor,
                data: []
            };

            for (var index = 0; index < horizontalBarChartData.labels.length; ++index) {
                newDataset.data.push(randomScalingFactor());
            }

            horizontalBarChartData.datasets.push(newDataset);
            window.myHorizontalBar.update();
        });

        document.getElementById('addData').addEventListener('click', function() {
            i