1
0
Fork 0

RatioBarChart: Remove unnecessary check

It's already (better) handled by BarChart
This commit is contained in:
Aaron Lindsay 2017-01-10 20:54:46 -05:00
parent dcb921c5f5
commit 2570a07d57
1 changed files with 2 additions and 3 deletions

View File

@ -5,14 +5,13 @@ var BarChart = require('../components/BarChart')
module.exports = React.createClass({
displayName: "RatioBarChart",
render: function() {
/* Expects 'this.props.numerator' and '.denominator' to be in the form:
/* Expects 'this.props.numerator' and 'this.props.denominator' to be in
* the form:
* [
* {'Label': 'foo', 'Value': 1.4},
* {'Label': 'bar', 'Value': 8}
* ]
*/
if (this.props.denominator.length < 1)
return (<div />);
var numeratorMap = {};
for (var i = 0; i < this.props.numerator.length; i++) {