When a cell in the heatmap is hovered, display a count of the number of posts.
To display a count on hover, you'll need to add D3's mouseover
and mouseout
event handlers to the heatmap cells. You may find this guide helpful.
- Add
mouseover
andmouseout
events to the cells. - Create a function to append the text of the
count
value of the hovered cell. - Create a function to remove the text when the cell is no longer hovered.