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
com.antgroup.antv.f2.F2Guide.GuideBackgroundConfigBuilder#color(com.antgroup.antv.f2.F2Util.ColorGradient)
机型:Android 11,华为P50
测试程序:samples
测试代码: 在对比折线图中增加代码:
F2Guide.GuideBackgroundConfigBuilder backgroundConfigBuilder = new F2Guide.GuideBackgroundConfigBuilder(); backgroundConfigBuilder.color(new F2Util.ColorLinearGradient() .addColorStop(0f, "#FF0033") .addColorStop(1f, "#FFFFFF") .setPosition(0, 0, 0, canvasView.getHeight()) ); backgroundConfigBuilder.leftBottom(new String[]{"min", "min"}); backgroundConfigBuilder.rightTop(new String[]{"2011-12-11", "max"});
The text was updated successfully, but these errors were encountered:
不好意思,回复晚了。在Guide的Background中颜色暂未支持渐变色的设计,后续会考虑支持。
Sorry, something went wrong.
大概多久,自己尝试给guide#background加了下渐变色的解析支持,发现android和iOS变现不一致- - iOS的渐变色正常,但是android的这个渐变色变成了全局的渐变色- -
这个可能是android canvas画笔的一个bug,设置了渐变色,会影响到全局的画笔。暂时还没有排期。
渐变色的bug已经修复, 修复版本为 2.1.8。 可以这样引入
repositories { maven { url 'https://jitpack.io' } } dependencies { implementation 'com.github.antvis:2.1.8' }
No branches or pull requests
com.antgroup.antv.f2.F2Guide.GuideBackgroundConfigBuilder#color(com.antgroup.antv.f2.F2Util.ColorGradient)
机型:Android 11,华为P50
测试程序:samples
测试代码:
在对比折线图中增加代码:
The text was updated successfully, but these errors were encountered: