Improve show_legend logic.
Merge branch 'master' of github.com:VizGrimoire/VizGrimoireJS-lib