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

重新渲染无法隐藏 title #5017

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

重新渲染无法隐藏 title #5017

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

Comments

@pearmini
Copy link
Member

  • 出现问题:重新渲染无法隐藏 title
  • 版本:5.0.6
/**
 * A recreation of this demo: https://observablehq.com/@d3/bar-chart
 */
import { Chart } from '@antv/g2';

const chart = new Chart({
  container: 'container',
  theme: 'classic',
  autoFit: true,
});

const interval = chart
  .interval()
  .data({
    type: 'fetch',
    value:
      'https://gw.alipayobjects.com/os/bmw-prod/fb9db6b7-23a5-4c23-bbef-c54a55fee580.csv',
  })
  .encode('x', 'letter')
  .encode('y', 'frequency')
  .axis('y', { labelFormatter: '.0%' })
  .animate(false);

chart.render();

setTimeout(() => {
  interval.axis('y', { title: null })
  chart.render();
}, 1000)
@hustcc
Copy link
Member

hustcc commented May 15, 2023

fixed by antvis/GUI#281

@hustcc hustcc assigned Aarebecca and unassigned pearmini May 15, 2023
@hustcc hustcc closed this as completed May 16, 2023
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

3 participants