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
F2中若使用canvas生成的线性渐变进行填充,无法满足对每一个值的柱状图内部覆盖全部渐进范围的需求,只可在canvas区域内进行全区域渐变
G2中利用 chart.interval().position('year*sales').style({ fill: 'l(90) 0:#000000 0.5:#7ec2f3 1:#ff0000' }); 的方式即可轻松实现。
求靠谱的解决方式 或功能实现
The text was updated successfully, but these errors were encountered:
恩,非常理解,这个问题之前 我也考虑到了,目前的渐变方案是对整个画布生效的。这个功能我这周支持一下,稍等哦
Sorry, something went wrong.
非常感谢!
20b18a9
Merge pull request #260 from antvis/feat-gradient
513ef4f
feat: support set gradient color in default. Closed #243.
3.2.1-beta.1 版本已经支持。使用范式同 G2,但是注意除去颜色之间的空格,其余不要留有任何空格。
fill: 'l(90) 0:#000000 0.5:#7ec2f3 1:#ff0000'
您好, 渐变色对整个画布生效现在还支持么, 有需求想用到这个
simaQ
No branches or pull requests
F2中若使用canvas生成的线性渐变进行填充,无法满足对每一个值的柱状图内部覆盖全部渐进范围的需求,只可在canvas区域内进行全区域渐变
G2中利用
chart.interval().position('year*sales').style({
fill: 'l(90) 0:#000000 0.5:#7ec2f3 1:#ff0000'
});
的方式即可轻松实现。
求靠谱的解决方式 或功能实现
The text was updated successfully, but these errors were encountered: