Changing "NaN" in choropleth's hover text


#1

In the image below, is there a way to replace “NaN” in the hover text to say “N/A” or anything else? I’ve tried replacing the empty cells in my CSV with the text “N/A” but it still defaults to “NaN.”

For reference, my code follows the format of this example: https://plot.ly/javascript/map-animations/.


#2

Try using:


#3

This is perfect. Thank you!