Data Visualization: Bar Chart Project - failing 2 test

Tooltip should be visible when mouse is on an area: expected true to be false
AssertionError: Tooltip should be visible when mouse is on an area: expected true to be false

Here is the my codepen link.

https://codepen.io/munna-the-reactor/pen/MWKeEpp

Hello and welcome to the FCC community~!

It looks like the error may be due to the fact that you are appending a “Title” element as your tooltip. Try creating a tooltip div instead.

Thanks for your quick reply @nhcarrigan
Yes, but according to my practice I learned to use title by appending ‘title’ element.

Apart from this , I am getting another error.

Tooltip’s “data-date” property should be equal to the active area’s “data-date” property: expected ‘1947-01-01’ to equal ‘1973-01-01’
AssertionError: Tooltip’s “data-date” property should be equal to the active area’s “data-date” property: expected ‘1947-01-01’ to equal ‘1973-01-01’