temporary fix for flotr2 legends as well

need something more scalable in future