mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
Add label for first dataset in progress-bar example (#5625)
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.
This commit is contained in:
parent
0ddd0ee16b
commit
858d86eebb
@ -28,6 +28,7 @@
|
|||||||
data: {
|
data: {
|
||||||
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
|
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
|
||||||
datasets: [{
|
datasets: [{
|
||||||
|
label: 'My First dataset',
|
||||||
fill: false,
|
fill: false,
|
||||||
borderColor: window.chartColors.red,
|
borderColor: window.chartColors.red,
|
||||||
backgroundColor: window.chartColors.red,
|
backgroundColor: window.chartColors.red,
|
||||||
|
Loading…
Reference in New Issue
Block a user