Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 [BUG]设置timeCat,brush-x无法使用 #3798

Open
jinxinkai opened this issue Jul 12, 2024 · 0 comments
Open

🐛 [BUG]设置timeCat,brush-x无法使用 #3798

jinxinkai opened this issue Jul 12, 2024 · 0 comments
Labels
Bug Something isn't working

Comments

@jinxinkai
Copy link

设置timeCat,brush-x无法使用

📷 Step to reproduce

import { Line } from '@antv/g2plot';

fetch('https://gw.alipayobjects.com/os/bmw-prod/1d565782-dde4-4bb6-8946-ea6a38ccf184.json')
  .then((res) => res.json())
  .then((data) => {
    const line = new Line('container', {
      data,
      padding: 'auto',
      xField: 'Date',
      yField: 'scales',
      xAxis: {
        type: 'timeCat',
      },
      interactions: [
        {
          type: 'brush-x'
        }
      ]
    });

    line.render();
  });

@jinxinkai jinxinkai added the Bug Something isn't working label Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant