BarChart using componentDidMount instead of componentWillReceiveProps