If colours have been changed or allocated manually, it is possible that the same colour values are used by more than one colour in the palette. That is they are identical but there are two entries and thus two symbols on the chart.
This command will merge any identical colours to create a chart where there is just one symbol for each colour.