Allow to disable legend.