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

brushXFilter 在有空 label 的时候展示 tooltip 有误 #4930

Closed
pearmini opened this issue May 4, 2023 · 1 comment
Closed

brushXFilter 在有空 label 的时候展示 tooltip 有误 #4930

pearmini opened this issue May 4, 2023 · 1 comment
Assignees
Labels

Comments

@pearmini
Copy link
Member

pearmini commented May 4, 2023

import { Chart } from '@antv/g2';

const chart = new Chart({
  container: 'container',
  theme: 'classic',
  width: 900,
  height: 1000,
  paddingRight: 80,
});

chart.coordinate({ transform: [{ type: 'transpose' }] });

chart
  .interval()
  .data({
    type: 'fetch',
    value: 'https://assets.antv.antgroup.com/g2/world-history.json',
  })
  .transform({ type: 'sortX', by: 'y' })
  .transform({ type: 'sortColor', by: 'y', reducer: 'min' })
  .axis('x', false)
  .encode('x', 'civilization')
  .encode('y', ['start', 'end'])
  .encode('color', 'region')
  .scale('color', { palette: 'set2' })
  .label({ text: '' }) // 和这行代码有关系

chart.interaction('brushXFilter');

chart.render();
@pearmini pearmini self-assigned this May 4, 2023
@pearmini pearmini added the V5 label May 4, 2023
@pearmini pearmini added the Bug label Sep 6, 2023
@pearmini
Copy link
Member Author

这个问题已经修复了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant