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

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

Closed
pearmini opened this issue Jun 8, 2023 Discussed in #5158 · 0 comments · Fixed by #5320
Closed

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

pearmini opened this issue Jun 8, 2023 Discussed in #5158 · 0 comments · Fixed by #5320
Assignees
Labels

Comments

@pearmini
Copy link
Member

pearmini commented Jun 8, 2023

Discussed in #5158

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

image

比如如下使用:

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();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant