We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Originally posted by blacksidev98 June 9, 2023 如下图的折线图能用轨迹表达出来 以下是本例的代码
import { Chart } from '@antv/g2'; const chart = new Chart({ container: 'container', theme: 'classic', autoFit: true, }); chart.data({ type: 'fetch', value: 'https://assets.antv.antgroup.com/g2/aapl.json', }); chart .line() .encode('x', (d) => new Date(d.date)) .encode('y', (d) => (new Date(d.date).getUTCMonth() <= 3 ? NaN : d.close)) .encode('size', 'close') // .style('shape', 'trail') chart.render();
The text was updated successfully, but these errors were encountered:
pearmini
Successfully merging a pull request may close this issue.
Discussed in #5183
Originally posted by blacksidev98 June 9, 2023
如下图的折线图能用轨迹表达出来
以下是本例的代码
The text was updated successfully, but these errors were encountered: