Skip to content

Commit

Permalink
Radar charts should fill to the center by default (#7446)
Browse files Browse the repository at this point in the history
* Radar charts should fill to the center by default
* Update tests for new defaults
  • Loading branch information
etimberg committed Sep 1, 2020
1 parent 2b57660 commit e26f7b9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/controllers/controller.radar.js
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
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
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
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

0 comments on commit e26f7b9

Please sign in to comment.