, 1);
            window.myChart.update();
        });

        document.getElementById('removeData').addEventListener('click', function() {
            bubbleChartData.datasets.forEach(function(dataset, datasetIndex) {
                dataset.data.pop();
            });

            window.myChart.update();
        });
    </script>
</body>

</html>
