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

请问AAChartTypePie 扇形图每个扇区颜色如何设置 #40

Closed
dlhub opened this issue Aug 28, 2017 · 2 comments
Closed

请问AAChartTypePie 扇形图每个扇区颜色如何设置 #40

dlhub opened this issue Aug 28, 2017 · 2 comments
Labels

Comments

@dlhub
Copy link

dlhub commented Aug 28, 2017

AAChartTypePie 中 colorsThemeSet 不能控制每个扇区的颜色,应该如何设置?

@AAChartModel
Copy link
Owner

设置图表的主题颜色,数组内容必须为如下这样的的十六进制字符串颜色数组

 .colorsThemeSet(@[@"#b5282a",@"#e7a701",@"#50c18d",@"#fd4800",@"#f1c6c5"])

@dlhub
Copy link
Author

dlhub commented Aug 29, 2017

可能我没描述清楚。我说的是 Pie Chart 扇形图 这种类型。Demo没有给出样例如何修改颜色。全是红色的。

@[
                     AAObject(AASeriesElement)
                     .nameSet(@"语言热度占比")
                     .innerSizeSet(@"35%")
                     .dataSet(@[
                                @[@"Java"  , @67],
                                @[@"Swift" , @44],
                                @[@"Python", @83],
                                @[@"OC"    , @11],
                                @[@"Ruby"  , @42],
                                @[@"PHP"   , @31],
                                @[@"Go"    , @63],
                                @[@"C"     , @24],
                                @[@"C#"    , @888],
                                @[@"C++"   , @66],
                                ]),
                     ]
                   )

比如我需要各种开发语言颜色不一样,如修改 Swift 为其它颜色。请教我应该怎么做,谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants