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
style.fill
/** * A recreation of this demo: https://observablehq.com/@d3/bar-chart */ import { Chart } from '@antv/g2'; const chart = new Chart({ container: 'container', autoFit: true, }); chart.data({ type: 'fetch', value: 'https://gw.alipayobjects.com/os/bmw-prod/fb9db6b7-23a5-4c23-bbef-c54a55fee580.csv', }) chart.interval(). encode('x', 'letter') .encode('y', 1) .scale('y', { independent: true, range: [0, 1] }) .axis('y', false) .style('fillOpacity',0.15) .style('fill', 'red') chart .interval() .encode('x', 'letter') .encode('y', 'frequency') .axis('y', { labelFormatter: '.0%' }); chart.render();
The text was updated successfully, but these errors were encountered:
这个和官网的 pattern 失效应该是同一个问题。
Sorry, something went wrong.
fix(style): style.fill has higher priority (close: #4667)
8104155
6e12b14
fix(style): style.fill has higher priority (close: #4667) (#4676)
5117d0c
9e10168
696d0cc
pearmini
Successfully merging a pull request may close this issue.
现象
复现代码
The text was updated successfully, but these errors were encountered: