# D3 Bar Chart Tooltip Not Showing

**URL:** <https://forum.freecodecamp.org/t/d3-bar-chart-tooltip-not-showing/357223>\
**Category:** General\
**Created:** [March 9, 2020, 5:30am UTC](https://forum.freecodecamp.org/t/d3-bar-chart-tooltip-not-showing/357223 "2020-03-09T05:30:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fcccm](https://avatars.discourse-cdn.com/v4/letter/f/9de053/32.png) [@fcccm](https://forum.freecodecamp.org/u/fcccm)\
**Post date:** [March 9, 2020, 5:30am UTC](https://forum.freecodecamp.org/t/d3-bar-chart-tooltip-not-showing/357223/1 "2020-03-09T05:30:29Z")

</div>

I’m having problems with the tooltip. When I use the svg title component as taught in the curriculum, I can see it and it works fine, but the tests are not passed. So I replaced it with a mouseover event on a div instead, and while it _does_ pass the tests, I cannot actually see it in my codepen. Why can’t I see it? Codepen here: [https://codepen.io/catmother/pen/xxGPXmK](https://codepen.io/catmother/pen/xxGPXmK) Thanks!

---

<div class="post-metadata">

**Author:** ![fcccm](https://avatars.discourse-cdn.com/v4/letter/f/9de053/32.png) [@fcccm](https://forum.freecodecamp.org/u/fcccm)\
**Post date:** [March 9, 2020, 5:59am UTC](https://forum.freecodecamp.org/t/d3-bar-chart-tooltip-not-showing/357223/2 "2020-03-09T05:59:16Z")

</div>

The problem was I was using the attr property instead of style to set the left and top of my tooltip. 😄

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [June 1, 2021, 7:33pm UTC](https://forum.freecodecamp.org/t/d3-bar-chart-tooltip-not-showing/357223/3 "2021-06-01T19:33:18Z")

</div>

Closed on June 1, 2021, 7:33pm UTC


