apache / echarts

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

axisPointer.type:shadow doesn't work for time axis #9843

Open maliayas opened 5 years ago

maliayas commented 5 years ago

General Questions

Issue Type

Issue Details

axisPointer: {type: 'shadow'} doesn't work for time axis. Note that trigger is set to axis (tooltip: {trigger: 'axis'}).

Expected Behavior

I'd expect that the shadow works for time axis like for category axis.

Current Behavior

There is only a line pointer just like axisPointer: {type: 'line'}

Online Example

https://jsfiddle.net/3ckhL4ot/1/

Topics

Anything Else We Need to Know

If I use xAxis: {type: "category"} in the same code, it works fine:

https://jsfiddle.net/3ckhL4ot/2/

Environment

smartsl commented 3 years ago

Asking for help too, as this bug is still here on latest versoin v5.1.2.

jonavila commented 1 year ago

@100pah Is this considered a bug or an enhancement? I just stumbled upon this issue and I was assuming it would work that same as when the axis is set to type 'category'.

frnkvieira commented 1 year ago

I just stumbled upon this issue as well and it seems a bug to me

adaelixir commented 3 months ago

https://github.com/apache/echarts/pull/20235