Skip to content
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

Radar charts should fill to the center by default #7446

Merged
merged 2 commits into from
May 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions src/controllers/controller.radar.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ defaults.set('radar', {
},
elements: {
line: {
fill: 'start',
tension: 0 // no bezier in radar
}
}
Expand Down
3 changes: 2 additions & 1 deletion test/fixtures/controller.radar/backgroundColor/scriptable.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ module.exports = {
return index === 0 ? '#ff0000'
: index === 1 ? '#00ff00'
: '#ff00ff';
}
},
fill: true,
},
point: {
backgroundColor: '#0000ff',
Expand Down
3 changes: 2 additions & 1 deletion test/fixtures/controller.radar/backgroundColor/value.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ module.exports = {
title: false,
elements: {
line: {
backgroundColor: '#00ff00'
backgroundColor: '#00ff00',
fill: true,
},
point: {
radius: 10
Expand Down
3 changes: 2 additions & 1 deletion test/fixtures/controller.radar/borderDash/scriptable.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ module.exports = {
borderColor: '#00ff00',
borderDash: function(ctx) {
return ctx.datasetIndex === 0 ? [5] : [10];
}
},
fill: true,
},
point: {
radius: 10
Expand Down