echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Feature] Make the area of a line chart not interactable by configuration

Open VinceBT-BG opened this issue 1 year ago • 4 comments

What problem does this feature solve?

This would allow hovering line charts without triggering emphasis events

What does the proposed API look like?

areaStyle: {
    silent: true
}

VinceBT-BG avatar Feb 15 '24 16:02 VinceBT-BG

emphasis.disabled ? 📌 please close issue if problem solved.

helgasoft avatar Feb 15 '24 19:02 helgasoft

No I would like the line to have an emphasis but the area would not have it

VinceBT-BG avatar Feb 15 '24 23:02 VinceBT-BG

workaround with a second line - Demo Code

helgasoft avatar Feb 16 '24 18:02 helgasoft

Indeed it's a hack but it doubles the number of elements to display in a chart, it can work as a workaround but it would be easier to just be able to disable the pointer events on the line

VinceBT-BG avatar Feb 20 '24 16:02 VinceBT-BG