Skip to content

Commit 092ca5e

Browse files
committed
Canvas width/height is not as per W3C standards
fixes #10
1 parent 679c22e commit 092ca5e

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

dist/react-chartjs-2.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ var ChartComponent = _react2['default'].createClass({
5656
position: 'bottom'
5757
},
5858
type: 'doughnut',
59-
height: 200,
60-
width: 200,
59+
height: 150,
60+
width: 300,
6161
redraw: false
6262
};
6363
},

dist/react-chartjs-2.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/Chart.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ var ChartComponent = _react2['default'].createClass({
5454
position: 'bottom'
5555
},
5656
type: 'doughnut',
57-
height: 200,
58-
width: 200,
57+
height: 150,
58+
width: 300,
5959
redraw: false
6060
};
6161
},

src/Chart.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ const ChartComponent = React.createClass({
2525
position: 'bottom'
2626
},
2727
type: 'doughnut',
28-
height: 200,
29-
width: 200,
28+
height: 150,
29+
width: 300,
3030
redraw: false,
3131
};
3232
},

0 commit comments

Comments
 (0)