Add legend to progress bar directive