Added option to show/hide values in the legend.