-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Line chart improvements 2 #315
Conversation
constructor(props) { | ||
super(props); | ||
this.state = { | ||
customWidth: props.currentGoal.ratings.length < 6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this change? It does not look like it does..
If it does, maybe think about moving it into redux.
If it does not change, it should not be in the state. Either you can move this functionality into mapStateToProps or just make a helper here..
Might be easier if you told me why it is here..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
erm yeah, i don't know what i was doing 🙃 - have got rid of it now!
More improvements to the line chart!
animated arrow on preview version, should let user know that they can click to see more!
animation on detail version, scrolls to latest rating and automatically opens details of that rating (only takes effect when there are 6 or more ratings to see on one goal)
all related to #286
i think i might have done some really bad things here, sorry... 🙈