antvis/G2

size 通道需要支持离散数据 #5166

pearmini posted onGitHub

Discussed in https://github.com/antvis/G2/discussions/5158

<div type='discussions-op-text'>

加上color通道也只能区分颜色大小没有改变

image

</div>

比如如下使用:

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

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

chart
  .point()
  .data({
    type: 'fetch',
    value:
      'https://gw.alipayobjects.com/os/basement_prod/6b4aa721-b039-49b9-99d8-540b3f87d339.json',
  })
  .encode('x', 'height')
  .encode('y', 'weight')
  .encode('color', 'gender')
  .encode('size', 'gender');

chart.render();

Fund this Issue

$0.00
Funded

Pull requests