kevinw0123 opened a new issue #9959: The series.label.formatter function passes in data from the wrong series. URL: https://github.com/apache/incubator-echarts/issues/9959 ### Version 4.2.0-rc.2 ### Reproduction link [https://codepen.io/kevinw0123/pen/exVGqv](https://codepen.io/kevinw0123/pen/exVGqv) ### Steps to reproduce The series.label.formatter function passes in data from the wrong series. I'm trying to use the formatter: function(component) {...} to create a custom label for my bar graph. However, component.value returns data from series[dataIndex] rather than series[seriesIndex]. ### What is expected? The first digit of data is the series index, and the second digit is the data index. The formatter is supposed to pass in the series[seriesIndex] for the dataset. This should show 11, 12, 13 for the first graph. Instead, it's showing 11, 22, 13, since it's trying to access the wrong series. ### What is actually happening? When I try to access the data passed back from the formatter, the data in the component is from series[dataIndex], rather than series[seriesIndex]. Even though the seriesIndex values and dataIndex values are correct, the data in the component is wrong. Notice how the labels don't match up with the formatted values. <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE --> <!-- This issue is in English. DO NOT REMOVE -->
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
