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

[v5] point mark encode shape not as expected #4518

Closed
visiky opened this issue Dec 24, 2022 · 0 comments
Closed

[v5] point mark encode shape not as expected #4518

visiky opened this issue Dec 24, 2022 · 0 comments
Assignees
Labels

Comments

@visiky
Copy link
Member

visiky commented Dec 24, 2022

现状

  • 设置 encode('shape', 'diamond') 不生效,设置为 point 时,可以生效

image

image

代码

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

const chart = new Chart({
  container: 'container',
  height: 120,
});

chart
  .point()
  .data({
    type: 'fetch',
    value:
      'https://gw.alipayobjects.com/os/basement_prod/6b4aa721-b039-49b9-99d8-540b3f87d339.json',
  })
  .encode('x', 'height')
  // work
  // .encode('shape','point')
  // do not work
  .encode('shape', 'diamond')

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

No branches or pull requests

2 participants