diff --git a/guide/english/certifications/data-visualization/data-visualization-with-d3/add-a-hover-effect-to-a-d3-element/index.md b/guide/english/certifications/data-visualization/data-visualization-with-d3/add-a-hover-effect-to-a-d3-element/index.md index a06032212b3..165a7fdab59 100644 --- a/guide/english/certifications/data-visualization/data-visualization-with-d3/add-a-hover-effect-to-a-d3-element/index.md +++ b/guide/english/certifications/data-visualization/data-visualization-with-d3/add-a-hover-effect-to-a-d3-element/index.md @@ -3,8 +3,18 @@ title: Add a Hover Effect to a D3 Element --- ## Add a Hover Effect to a D3 Element -This is a stub. Help our community expand it. +### Hint 1 -This quick style guide will help ensure your pull request gets accepted. +Add the ` bar ` class to all `rect ` elements. - +### Hint 2 + +Use the ` attr() ` method to add attributes. + +### Solution + +Add the following line of code to the end of your ` rect ` methods chain: + +```javascript +.attr("class","bar"); +```