I am doing exactly the same thing as told by you. But still the menu breaks. It does not render properly. When I re-create the menu, I am able to see all the menu items (without mouse hover). Am I doing anything wrong here?
Still, it does not solve the issue of NaN. If I remove formatFunction and use formatSettings {sufix:’%’}, I can still see an empty legend displayed.
Any idea, why?