Fixed bug for chart legends. Only one legend per unique sum was shown and legends with zero sum was shown.