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

Apply hover effect when hovering on donut arc or detail line #535

Merged
merged 2 commits into from
Mar 8, 2017

Conversation

jeremiak
Copy link
Contributor

@jeremiak jeremiak commented Mar 8, 2017

donut-hover

Refs #448

@@ -11,6 +11,10 @@ class NibrsDonut extends React.Component {
this.state = { hover: null }
}

onDetailHover = d => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of adding this, i think we can leverage the rememberValue function that's there, and pass that down to the NibrsDonutDetails component and then update the onMouseOver={() => onMouseOver(d.key)} to just be onMouseOver={rememberValue(d.key)}

Copy link
Contributor

@brendansudol brendansudol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one proposed tweak, otherwise great

@brendansudol
Copy link
Contributor

nice!

@brendansudol brendansudol merged commit 3c0fe98 into master Mar 8, 2017
@brendansudol brendansudol deleted the jk-donut-click branch March 8, 2017 17:55
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