apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.39k stars 19.61k forks source link

[Bug] emphasis is not applied to series-custom #18641

Open intijk opened 1 year ago

intijk commented 1 year ago

Version

5.4.2

Link to Minimal Reproduction

https://codepen.io/intijk/pen/qBJJLWr

Steps to Reproduce

For a series-custom type, add emphasis in it.

Current Behavior

custom emphasis was not applied to dataview

Expected Behavior

custom emphasis should apply to dataview, in the reported case, should come with shadow.

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

Same emphasis usage in this cartesian coordinate system(official example) works fine.

No response

helgasoft commented 1 year ago

emphasis should be in the return object of renderItem

          emphasis: { 
            style: {
              shadowBlur: 10, shadowColor: 'rgba(0, 0, 0, 0.5)'
            }
          },

NB: please close issue if problem solved.