-
Notifications
You must be signed in to change notification settings - Fork 33
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
Add legacy rape definition change indicator for 2013 #536
Conversation
src/components/TrendChart.js
Outdated
@@ -166,6 +191,27 @@ class TrendChart extends React.Component { | |||
onMouseMove={this.rememberValue} | |||
onMouseOut={this.forgetValue} | |||
/> | |||
{(timeTo >= 2013 && crime === 'rape') && ( | |||
<g> |
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.
i think it might be easier to transform this g
element to the proper spot, and then simply place the rect and text relative to that (so that we only need to do that x(new Date(2013-01-01)
in one spot)
src/components/TrendChart.js
Outdated
@@ -166,6 +191,27 @@ class TrendChart extends React.Component { | |||
onMouseMove={this.rememberValue} | |||
onMouseOut={this.forgetValue} | |||
/> | |||
{(timeTo >= 2013 && crime === 'rape') && ( | |||
<g> | |||
<g> |
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.
don't think this g
is necessary
84bb793
to
03d8bca
Compare
Good feedback, I think I addressed both of your points |
😍 |
Should be merged after #514