echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Bug] (Line chart) Changing cursor type when hovering on the area under the line

Open Rgonzales4 opened this issue 3 years ago • 4 comments

Version

5.3.3

Link to Minimal Reproduction

No response

Steps to Reproduce

Create a regular line graph with the area underneath coloured / areaStyle defined.

Current Behavior

The area under the line graph is coloured with no click event. When I hover over the area, the cursor changes to a pointer even though there's no related click event. I currently cannot find a property that will change the cursor type.

Expected Behavior

We should be able to define what the cursor changes to when hovering over the area under the line.

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

Rgonzales4 avatar Dec 06 '22 01:12 Rgonzales4

Agree - the pointer('hand') cursor is misleading since nothing happens on click.   Demo Code (switch dropdown to "5.4.0" then back to any version, initial page prevents click) Currently clicking is allowed only on line points, so is the cursor setting.

[Feature Request] - make the actual chart line clickable, please. Since the area underneath is part of the line, make it clickable too.

#2941 = possible workaround to detect line mouseover and click events, see my Demo Code (Dec 2022).

helgasoft avatar Dec 11 '22 20:12 helgasoft

how can i change style of areaStyle cursor - in series type line

zipporaSay avatar Jun 13 '23 18:06 zipporaSay

@zipporaSay - see above "Currently clicking is allowed only on line points, so is the cursor setting."

helgasoft avatar Jun 14 '23 03:06 helgasoft

This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

github-actions[bot] avatar Jun 13 '25 21:06 github-actions[bot]

This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!

github-actions[bot] avatar Jun 21 '25 21:06 github-actions[bot]