Fixed issues with legend items not reflecting updates to pie slices. Closes #1831. Closes #1885.