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
import { Chart } from '@antv/g2'; const data = [ { type: '《山河圖》', value: 1, n: 64, }, { type: '《山河圖》', value: 2, n: 37, }, { type: '《山河圖》', value: 3, n: 29, }, { type: '《歸途有風》', value: 1, n: 58, }, { type: '《歸途有風》', value: 2, n: 38, }, { type: '《歸途有風》', value: 3, n: 25, }, ]; const chart = new Chart({ container: 'container', autoFit: true, theme: 'classic', }); const facetchart = chart.facetRect().data(data).encode('x', 'type'); facetchart .interval() .coordinate({ type: 'polar' }) // 这里设置 polar .encode('x', 'value') .encode('y', 'n') .encode('color', 'value') .axis('y', false); chart.render();
The text was updated successfully, but these errors were encountered:
pearmini
Successfully merging a pull request may close this issue.
Discussed in #5219
The text was updated successfully, but these errors were encountered: