Getter. setter for showLegend and localizations.