Closed WiseNN closed 7 years ago
@WiseNN In this example, the properties xScale
and yScale
are incorrect. It is d3 scales, not numbers. Try to remove them.
Also, you need to pass props when you use a super()
constructor(props) {
super(props);
}
I don't see any other errors.
@WiseNN You are using the wrong comment style at this place
<BarChart data={this.props.results} title={this.props.currentQuestion.q} height={window.innerHeight * 0.6} width={window.innerWidth * 0.9}/>
//
doesn't work, you should use {/* code */}
Thanks, definitely forgot to pass the props in. Ill fix the comment format as well.
Correction: I did some testing, the exception throws because of the comment (which I had not expected), and because of the xScale / yScale props.Removing them completely solves this issue. Thanks again.
@solomein thank you! Your help is appreciated :) Are you still working on the fixes you told me? I will merge any pullreqs :)
@WiseNN I am glad the problem is fixed! Good luck :)
@codesuki I have no time at the moment 😪
@solomein same for me :( Let me know in case you are making some changes :)
I am getting a recurring type error in bundle.js file.
"Cannot read property 'map' of undefined" in bundle.js for BarChart
An object is undefined and trying to map to an array, but I am not sure where this is coming from because the failure is in a minified script (in bundle.js). As you can see this is the example code straight from github. Am I doing something wrong, or is this an issue?