8000 [Bug] DataZoom & ScrollBar 的拖拽交互不是实时的,但是默认 realTime: true · Issue #1462 · VisActor/VChart · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Bug] DataZoom & ScrollBar 的拖拽交互不是实时的,但是默认 realTime: true #1462
Closed
@kkxxkk2019

Description

@kkxxkk2019

Version

latest

Link to Minimal Reproduction

none

Steps to Reproduce

const run = async () => {
  const response = await fetch('https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/cars.json');
  const data = await response.json();
  const spec = {
    type: 'scatter',
    xField: 'Miles_per_Gallon',
    yField: 'Horsepower',
    seriesField: 'Origin',
    data: [
      {
        id: 'data',
        values: data.filter(d => d['Horsepower'] && d['Miles_per_Gallon'])
      }
    ],
    scrollBar: [
      {
        orient: 'bottom',
        start: 0,
        end: 0.4,
        visible: false,
        // filterMode: 'data',
        roamZoom: {
          enable: true
        },
        roamDrag: {
          enable: true
          // rate: 0.1
        }
        // roam: true
        // realTime: true
      }
    ],
    axes: [
      {
        title: {
          visible: true,
          text: 'Horse Power'
        },
        orient: 'left',
        type: 'linear'
      },
      {
        title: {
          visible: true,
          text: 'Miles Per Gallon'
        },
        orient: 'bottom',
        label: { visible: true },
        type: 'linear'
      }
    ],
    legends: [{}]
  };
  const vchart = new VChart(spec, { dom: CONTAINER_ID });
  vchart.renderAsync();

  // Just for the convenience of console debugging, DO NOT COPY!
  window['vchart'] = vchart;
};
run();

Current Behavior

REC-20231109162343.mp4

Expected Behavior

默认实时响应

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0