apache / echarts

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

Strange dataZoom behaviour in polar coordinate system #14261

Open rlaranjeira opened 3 years ago

rlaranjeira commented 3 years ago

Version

4.6.0 also reproduced on 5.0.2

Steps to reproduce

  1. First render chart with those options
option = {
    animation: false,
    angleAxis: {
        type: 'category',
        data: ['S1', 'S2', 'S3', 'S4', 'S5', 'S6']
    },
    dataZoom: {
      type: "inside",
      filterMode: "none",
      radiusAxisIndex: 0,
      startValue: 0,
      endValue: 15
    },
    radiusAxis: {
        min: 0,
        max: 15
    },
    polar: {
    },
    series: [{
        type: 'line',
        data: [2, 2, 2, 2, 2, 2, 2],
        coordinateSystem: 'polar',
        name: 'A',
        itemStyle: {
            color: "blue"
        }
    },
    {
        type: 'line',
        data: [4, 4, 4, 4, 4, 4, 4],
        coordinateSystem: 'polar',
        name: 'B',
        itemStyle: {
            color: "red"
        }
    },
    {
        type: 'line',
        data: [6, 6, 6, 6, 6, 6, 6],
        coordinateSystem: 'polar',
        name: 'C',
        itemStyle: {
            color: "green"
        }
    }],
    legend: {
        show: true,
        data: ['A', 'B', 'C']
    }
};
  1. Now update dataZoom startValue to 8

What is expected?

Lines should not be reversed, but cropped.

What is actually happening?

Lines are actually rendering in inverse order, blue curve get bigger than red and green curve. strange-dataZoom-polar

echarts-bot[bot] commented 3 years ago

Hi! We've received your issue and please be patient to get responded. 🎉 The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.

If you are interested in the project, you may also subscribe our mailing list.

Have a nice day! 🍵