zachsa opened a new issue #11458: pieselectchange event handler default data.seriesId value has extra whitespace character URL: https://github.com/apache/incubator-echarts/issues/11458 ### Version 4.3.0 ### Steps to reproduce Log the data passed to pieselectchange event handler. If I don't specify an 'id' key in the series object then the default id of the series has an extra white space character. ### What is expected? name: "my series name" selected: {...} seriesId: "SeriesName0" type: "pieselectchanged" ### What is actually happening? name: "my series name" selected: {...} seriesId: " SeriesName 0" type: "pieselectchanged" --- I will add a screenshot to the issue. Although I can clearly see whitespace in the seriesId name, it doesn't seem to be recognized as whitespace by methods such as trim/split/etc. But logging the first character of seriesId (seriesId[0]), it's clearly a whitespace character. So it looks like an encoding problem, but I don't really know for sure. <!-- 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 to 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]
