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

系列折线图设置渐变色失败 #5221

Closed
pearmini opened this issue Jun 25, 2023 Discussed in #5206 · 1 comment · Fixed by #5225
Closed

系列折线图设置渐变色失败 #5221

pearmini opened this issue Jun 25, 2023 Discussed in #5206 · 1 comment · Fixed by #5225
Assignees
Labels

Comments

@pearmini
Copy link
Member

Discussed in #5206

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

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

chart
  .line()
  .data({
    type: 'fetch',
    value:
      'https://gw.alipayobjects.com/os/bmw-prod/cb99c4ab-e0a3-4c76-9586-fe7fa2ff1a8c.csv',
  })
  .encode('x', (d) => new Date(d.date))
  .encode('y', 'price')
  .encode('series', 'symbol')
  .encode('color', 'price')
  .legend('size', false)
  .style('gradient', 'y')

chart.render();
@pearmini pearmini added the V5 label Jun 25, 2023
@pearmini pearmini self-assigned this Jun 25, 2023
@pearmini
Copy link
Member Author

相同的问题:#4630

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