I created a custom legend visual for some column charts we are using. When I tried to apply the same visual to a pie chart the series name is undefined. I see there is a e.options.series.data[] property but I have no way to figure out what index I am currently on. How do you create a custom legend item for a pie chart?
I created an example of the issue. Line 56.
http://plnkr.co/edit/WJ2J5Meor3AVC5pckhXk?p=preview