antvis/G2

当数据量只有一条的时候,折线图上没有点,没有任何交互内容 #5669

lxzy-yun posted onGitHub

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

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

chart
  .line()
  .data([
    {date: '2',close: 23}
  ])
  .encode('x', 'date')
  .encode('y', 'close');

chart.render();

当数据量只有一条的时候,折线图上没有点,没有任何交互内容 image

请问是特意设计还是有是bug? 版本号是5.1.5


这个正常的现象,因为:一个点没有办法绘制一条线

posted by pearmini over 1 year ago

Fund this Issue

$0.00
Funded

Pull requests