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

fnatzsnv  于 6个月前  发布在  Echarts
关注(0)|答案(3)|浏览(68)

Version

5.3.3

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

zbdgwd5y

zbdgwd5y1#

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 linemouseover and click events, see my Demo Code (Dec 2022).

ttcibm8c

ttcibm8c2#

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

b4qexyjb

b4qexyjb3#

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

相关问题