Update legend rule