Skip to content

Datazoom silder trend is wrong when data span is large #15688

Open

Description

@XXmushi

Version

5.2.0

Reproduction link

https://codepen.io/xxmushi/pen/rNwjWbW

Steps to reproduce

      const POINT_COUNT = 1e3
      const data= new Float64Array((POINT_COUNT 1) * 2)
      let off = 0
      for (let j = 0; j < POINT_COUNT; j++) {
        values[off++] = j
        values[off++] = Math.random() * 1000
      }
      data[off++] = 10000
      data[off++] = 0
      const option = {
           dataZoom: [
                 {
                type: 'slider',
                id: 'slider',
                xAxisIndex: [0],
                dataBackground: {
                   areaStyle: {
                    color: 'rgba(128, 128, 128, 0)'
                   }
               },
               fillerColor: 'rgba(128, 128, 128, 0)',
               borderColor: '#565656',
               moveHandleSize: 0,
               selectedDataBackground: {
                   lineStyle: {
                      color: '#f4f20b',
                      width: 0.5
                   },
                   areaStyle: {
                     color: 'rgba(128, 128, 128, 0)'
                 }
               }
           }
          ],
         ......,
         series: [
                {
                    type: 'line',
                    smooth: false,
                    data,
                    animation: false,
                    showSymbol: false,
                    dimensions: ['x', 'y'],
                    itemStyle: {
                    color: '#f4f20b'
                }
              }
         ]
   }

The X-axis of Data jumps from 1000 to 10000

Image of echarts

What is expected?

Datazoom silder don't filter the data when data span is larger

What is actually happening?

silder trend is wrong when data span is large

Activity

  1. echarts-bot commented on Sep 8, 2021

    @echarts-bot

    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 it contains a minimum reproducible demo and necessary images to illustrate. Otherwise, our committers will ask you to do so.

    A minimum reproducible demo should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.

    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 [email protected]. Please attach the issue link if it's a technical question.

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

    Have a nice day! 🍵

  2. added
    en
    pending
    on Sep 8, 2021
  3. added this to the 5.x milestone on Sep 9, 2021
  4. removed
    pending
    on Sep 16, 2021
  5. modified the milestones: 5.x, TBD on Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugen

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions