Update format of legend