echarts [Bug] dataZoom detail shape is not the same as data with value axis

bvk5enib  于 4个月前  发布在  Echarts
关注(0)|答案(5)|浏览(167)

Version

5.2.2

https://echarts.apache.org/examples/zh/editor.html?c=line-simple&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRA5AG4CGANgK5W0kC-ANCeTnxFUpMpRqwGLdp3S8SeKgCcIVQrADaJdCNGwAJozCMiWvaQ0BGAEw9YAZgC6fc-isBWO-4AMz7Xo1rbzt7XxdXK29g2B9Hf3Q_cwpqOmYIaA5_LhJEgyNGAC1gYABbYX88YyUwADVpCSDuFC4AbiA

Steps to Reproduce

option = {
  xAxis: {
    type: 'value'
  },
  yAxis: {
    type: 'value'
  },
  series: [
    {
      data: [
        [12, 3],
        [15, 50],
        [20, 30],
        [100, 50]
      ],
      type: 'line'
    }
  ],
  dataZoom: {
    startValue: 20
  }
};

Current Behavior

The detail view in the dataZoom is not the same as the data in range. You can see that the max value is still in the detail view of the dataZoom (wrong) but not in the chart visible area (correct).

Expected Behavior

The detail view should be the same as the chart area.

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

Similar problems exists when data is not in the ascending order in xAxis (e.g., [100, 10], [50, 20]).

xurqigkl

xurqigkl1#

It seems that the detail view of dataZoom is evenly divided by 4, which is equal to series.data.length.

btqmn9zl

btqmn9zl2#

I'm fixing this. :) @tyn1998

kcrjzv8t

kcrjzv8t3#

I'm fixing this. :)

@Ovilia, does this issue partially overlap my old issue 17122 ?

t5fffqht

t5fffqht5#

Any updates on this? I'm facing the same issue

相关问题