]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Add label for first dataset in progress-bar example (#5625)
authorBart Deslagmulder <celleken@gmail.com>
Mon, 9 Jul 2018 18:27:43 +0000 (20:27 +0200)
committerSimon Brunel <simonbrunel@users.noreply.github.com>
Mon, 9 Jul 2018 18:27:43 +0000 (20:27 +0200)
While the second dataset already has a label ("My Second dataset") the first dataset showed "undefined" as a label. Added a label to the first dataset object.

samples/advanced/progress-bar.html

index b97a998ea9522bc2c00b6b7c1a9821faca98e2a9..b9c72446e59bf5f22d976ceeccdc627b1b6cc82b 100644 (file)
@@ -28,6 +28,7 @@
                        data: {
                                labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
                                datasets: [{
+                                       label: 'My First dataset',
                                        fill: false,
                                        borderColor: window.chartColors.red,
                                        backgroundColor: window.chartColors.red,