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
目前通过 d.data[fieldName] 的去编码数据有点反直觉。
d.data[fieldName]
import { Chart } from '@antv/g2'; const chart = new Chart({ container: 'container', padding: 50, }); const data = { name:'f', children: [{name:'a', value:123 }, {name:'b', value:234}] }; chart .pack() .data({ value: data }) .layout({ padding: 5, }) .encode('value', 'value') .encode('color', d => d.data.name) // 通过 data 去访问数据 .style('labelText', (d) => d.r >= 10 && d.height === 0 ? `${d.data.name}` : '', ); chart.render();
The text was updated successfully, but these errors were encountered:
保持现状,文章说明清楚就好。
Sorry, something went wrong.
No branches or pull requests
目前通过
d.data[fieldName]
的去编码数据有点反直觉。The text was updated successfully, but these errors were encountered: