Skip to content
New issue

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

g2-mobile 拆线图,线的自定义颜色问题 #4

Closed
arronf2e opened this issue Jan 18, 2017 · 2 comments
Closed

g2-mobile 拆线图,线的自定义颜色问题 #4

arronf2e opened this issue Jan 18, 2017 · 2 comments

Comments

@arronf2e
Copy link

我看到文档中有一个colorCallback,可以让用户自定义颜色,请问怎么让线条支持几种颜色渐变呢

@ch-daisy
Copy link

可以使用canvas原生的渐变色方法createLinearGradient,具体使用可以参考这个示例:https://antv.alipay.com/g2-mobile/demo/02-line/line-html.html

@arronf2e
Copy link
Author

@ch-daisy OK,我试下

@ch-daisy ch-daisy closed this as completed Mar 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants