kianj2 opened a new issue, #20196: URL: https://github.com/apache/echarts/issues/20196
### Version 5.5.1 ### Link to Minimal Reproduction https://echarts.apache.org/examples/en/editor.html?c=custom-profit&lang=ts&code=PYBwLglsB2AEC8sDeAoWsA2BTA5l6AJgFzIC-ANGrAB4CC1EAziUhVQJ71MtvqNYAnCFmawA2lXSp0M2NACGAWywkA5ACF5A2AGVBwxqsqz0YdiBWxVAIy1HJMgvLDySEkzLEBGAEzlYAOwAusYe4l4AbP6-IQ6yYj5-sF7BoR5iAMwADP4-AByxYeIALHn-EYVhYgCsUckAnEFxsE2yvDLSJgrKagDCAK6MYMCKuvoi9h5mFmoAxoPDipMmAvgEggCSYFiKJABm_dCzkDCwABQgWkqM_vIgEACUyM3oAG5asOwAavIY_VgIWB3CAAOnefywZx8DwA3C9YO9tEMtGBAcCQbNgMABAQzmJ0eD_mcsg9_N9fv8grD4YjYIwIAAvAGIdH0pkAQjx8PQZwJFMhXie8kYcn6imsgieAFpznyIcShSLoGKJQJSdzPj8IfCqUClSrBGIgnCirShuxsGj7iDzdgztT4aswP0BHBOkVppZVKtjssiowABZ3Szuoo0EjIgRgMRZSphz4RlxR7xxsMAdwgBDAAYjjKwMaCsAAVLAsiCAtU0mGA1gIDgA2Bc0yUxr2h4APTtmQ7EBB-miUOyTsmBk-Eg5eHD9BtsK2yxz-GkE0mGfofCY9YseHUNw5ZKp2TsEh-eHDYAYSAgY_NVewJwuNzw7x7yL-DIHzyv5JlZLVD_obwfx8OoYireJgLfJJEn_cQMiSWp_FSJ8ENgCIkhSVoTEw6cqCaJcgA ### Steps to Reproduce 1. Hover "Custom Series" in legend. Notice how custom series overlaps the bar series 2. Uncomment this code in render item return rect ```typescript // emphasis: { // z2: 0, // }, ``` 3. Hover "Custom Series" in legend. Notice how custom series does not overlap the bar series ### Current Behavior It is clear that `series-custom.renderItem.return_rect.emphasis.z2` provides a change in behavior. However, this is not explained anywhere in the documentation. In addition, when `z2` is described in the documentation it is not clear to me what it does. The documentation for `series-custom.renderItem.return_rect.z2` is: > Define the overlap relationship between graphic elements. It is unclear to me what this means. Perhaps this can be explained more. Overlap between what kinds of graphic elements? If I change the bar graph to a line in the linked example the custom series does not overlap the line series. So it appears that overlapping happens in specific contexts. In addition, does `z2` represent a z index of sorts? And when is `z2` taken into consideration? Only when elements overlap? ### Expected Behavior `series-custom.renderItem.return_rect.emphasis.z2` is properly documented. ### Environment ```markdown - OS: - Browser: - Framework: ``` ### Any additional comments? `series-custom.renderItem.return_rect.emphasis.z2` ended up being a solution to a problem I was experiencing where adding emphasis on custom series resulted in bar series being covered. This only happened when bar series were placed before custom series in the series list. Because `series-custom.renderItem.return_rect.emphasis.z2` seems to have solved my problems, I wanted to know more about it to make sure it was the right solution. -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
