Change Tooltip NaN

Hello,

I have charts in my plugin where the tooltip shows NaN if theres no data. That is okay but I would like to change the tooltip text or disable the tooltip if there are no values. Is that possible ? And if so where do i have to change it?

Greets

manuel