Modify toolltip when removing line from legend

I have the following graphic


that when pressing on the legend the line hides, but the tooltip shows the empty information, what I need is to delete the empty data from the tooltip.

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum