Skip to content

Commit

Permalink
Fix inconsistent aspect ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
jtblin committed Mar 26, 2017
1 parent f3816b5 commit ba78d9e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/controllers/controller.doughnut.js
Expand Up @@ -12,7 +12,6 @@ module.exports = function(Chart) {
// Boolean - Whether we animate scaling the Doughnut from the centre
animateScale: false
},
aspectRatio: 1,
hover: {
mode: 'single'
},
Expand Down
1 change: 0 additions & 1 deletion src/controllers/controller.polarArea.js
Expand Up @@ -29,7 +29,6 @@ module.exports = function(Chart) {
},

startAngle: -0.5 * Math.PI,
aspectRatio: 1,
legendCallback: function(chart) {
var text = [];
text.push('<ul class="' + chart.id + '-legend">');
Expand Down
1 change: 0 additions & 1 deletion src/controllers/controller.radar.js
Expand Up @@ -5,7 +5,6 @@ module.exports = function(Chart) {
var helpers = Chart.helpers;

Chart.defaults.radar = {
aspectRatio: 1,
scale: {
type: 'radialLinear'
},
Expand Down
6 changes: 3 additions & 3 deletions test/specs/platform.dom.tests.js
Expand Up @@ -107,13 +107,13 @@ describe('Platform.dom', function() {
}
}, {
canvas: {
style: 'width: 425px'
style: 'width: 212px'
}
});

expect(chart).toBeChartOfSize({
dw: 425, dh: 425,
rw: 425, rh: 425,
dw: 212, dh: 106,
rw: 212, rh: 106,
});
});

Expand Down

0 comments on commit ba78d9e

Please sign in to comment.