Fix conditional logic for legend display.
Merge pull request #84 from prometheus/fix/legend-display

Fix conditional logic for legend display.