Update legend.