Skip to content
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

Merged
merged 4 commits into from
Mar 8, 2017

Conversation

jeremiak
Copy link
Contributor

@jeremiak jeremiak commented Mar 8, 2017

Should be merged after #514

legacy-rape-definition

@@ -166,6 +191,27 @@ class TrendChart extends React.Component {
onMouseMove={this.rememberValue}
onMouseOut={this.forgetValue}
/>
{(timeTo >= 2013 && crime === 'rape') && (
<g>
Copy link
Contributor

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)

@@ -166,6 +191,27 @@ class TrendChart extends React.Component {
onMouseMove={this.rememberValue}
onMouseOut={this.forgetValue}
/>
{(timeTo >= 2013 && crime === 'rape') && (
<g>
<g>
Copy link
Contributor

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

@jeremiak
Copy link
Contributor Author

jeremiak commented Mar 8, 2017

Good feedback, I think I addressed both of your points

@brendansudol
Copy link
Contributor

😍

@brendansudol brendansudol merged commit 3865c53 into master Mar 8, 2017
@brendansudol brendansudol deleted the jk-legacy-rape-definition branch March 8, 2017 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants