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

Pie Chart 扇形图 设置颜色 #41

Closed
dlhub opened this issue Aug 29, 2017 · 3 comments
Closed

Pie Chart 扇形图 设置颜色 #41

dlhub opened this issue Aug 29, 2017 · 3 comments

Comments

@dlhub
Copy link

dlhub commented Aug 29, 2017

Pie Chart 扇形图 设置颜色。Demo没有给出样例如何修改颜色。全是红色的。

   AAChartModel *chartModel= AAObject(AAChartModel)
        .chartTypeSet(AAChartTypePie)
        .titleSet(@"编程语言热度")
        .subtitleSet(@"虚拟数据")
        .dataLabelEnabledSet(true)//是否直接显示扇形图数据
        .yAxisTitleSet(@"摄氏度")
        .seriesSet(
                   @[
                     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 为其它颜色。请教我应该怎么做,谢谢!

@AAChartModel
Copy link
Owner

感谢提醒,因在某一次版本更新中增加了新特性影响到扇形图的主题颜色设置功能了☹️,现已修复此问题,题主可更新AAChartKit的测试示例 DEMO 重新查看效果,如再有问题,可及时沟通😝.

@dlhub
Copy link
Author

dlhub commented Aug 29, 2017

非常感谢你的回答,版主真是及时雨,谢谢提供好用的图表控件!👍

@AAChartModel
Copy link
Owner

(🌺🌺🌺)好说好说,后续的持久改进和优化离不开诸位的支持呢!(🌺🌺🌺)

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

No branches or pull requests

2 participants