antvis/G2

autoFit 和 clip 同时存在,没有 tooltip #5706

pearmini posted onGitHub

问题描述

  • 版本:5.1.6
    /**
    * A recreation of this demo: https://observablehq.com/@d3/bar-chart
    */
    import { Chart } from '@antv/g2';
    

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

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%' });

chart.render();

```

重现链接

No response

重现步骤

No response

预期行为

No response

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response


这个问题,在 5.1.6 已经修复,之前是因为官网没有更新导致的。

posted by pearmini over 1 year ago

Fund this Issue

$0.00
Funded

Pull requests