Responsive layout for text box (tooltip)

I have a hover text box (tooltip) over my bar chart (graph below). However, when I change the size of my screen, my graph is responsive but not the associated text box. Is there a way to make the text box responsive as well? Thanks