echarts Wrong interval in axisTick when use method

ht4b089n  于 10个月前  发布在  Echarts
关注(0)|答案(4)|浏览(94)

Version

5.4.0

https://codepen.io/Mykhailo-codepen/pen/gOKzYJj

Steps to Reproduce

  1. Create 7 days x axis starting from Saturday
  2. Add one axisTick interval which divides weeks. So interval should be before Monday. For this you need to use method.

Current Behavior

If Interval one only every time it goes before first bar.
If we have more then one interval it works fine (set intervals on proper places) but adds one extra interval after last bar.

Expected Behavior

interval depends on method logic only

Environment

  1. Problem in all browsers independent of Framework

Any additional comments?

No response

gv8xihay

gv8xihay1#

This is unavailable for category axis.

https://echarts.apache.org/en/option.html#xAxis.interval

cgh8pdjw

cgh8pdjw2#

This is unavailable for category axis.

https://echarts.apache.org/en/option.html#xAxis.interval

My issue related to xAxis.axisTick.interval not to xAxis.interval
https://echarts.apache.org/en/option.html#xAxis.axisTick.interval

a7qyws3x

a7qyws3x3#

Sorry. I checked again and this is a bug.

wooyq4lh

wooyq4lh4#

This issue is labeled with difficulty: easy .
@Mykhaylo12 Would you like to debug it by yourself? This is a quicker way to get your problem fixed. Or you may wait for the community to fix.

Please have a look at How to debug ECharts if you'd like to give a try. 🤓

相关问题