-
Notifications
You must be signed in to change notification settings - Fork 760
Bug #442 - Border Color #462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
4b51d9c
6ac8354
89f3f1e
39375f9
3e03ca9
c600f25
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -311,15 +311,18 @@ | |
var dataset = { | ||
labels: labels, | ||
datasets: [{ | ||
data: data, | ||
backgroundColor: colors.map(function (color) { | ||
return color.pointBackgroundColor; | ||
}), | ||
hoverBackgroundColor: colors.map(function (color) { | ||
return color.backgroundColor; | ||
}) | ||
data: data | ||
}] | ||
}; | ||
colors.map(function (color) { | ||
Object.keys(color).forEach(function (key) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
var d = dataset.datasets[0][key]; | ||
if (d === undefined) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The proper way to test for |
||
d = dataset.datasets[0][key] = [] | ||
} | ||
d.push(color[key]) | ||
}); | ||
}); | ||
if (datasetOverride) { | ||
angular.merge(dataset.datasets[0], datasetOverride); | ||
} | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
map returns a newly created array which is not needed here, so use
forEach
instead.