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

gr8qqesn  于 2022-11-03  发布在  Echarts
关注(0)|答案(1)|浏览(196)

General Questions

Issue Type

  • I have a question to ask about how to use ECharts to ...;我想提问如何使用 ECharts 实现某功能
  • I have a bug to report;我想要报 bug
  • I have a feature to request, e.g.: I'd like a new feature that ...;我需要一个新功能
  • I have a feature to enhance, e.g.: The current feature should be improved in the way that ...;我希望改进某个功能
  • There's something wrong with the documents;文档有些问题
  • Others, or I'm not sure which issue types to choose here;其他,或我不知道应该选什么类型

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

  • ECharts version;ECharts 版本: 4.2.1-rc1
bis0qfac

bis0qfac1#

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

相关问题