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

你好,我又来了,还是连线的问题 #34

Closed
yeqiliang opened this issue Aug 16, 2017 · 8 comments
Closed

你好,我又来了,还是连线的问题 #34

yeqiliang opened this issue Aug 16, 2017 · 8 comments

Comments

@yeqiliang
Copy link

如果没有Y没有值 能跳过当前没有值的Y轴连下一个点的

snip20170816_2

线吗?

@kallywang-jia
Copy link

没有值能不能理解为0呢?

@AAChartModel
Copy link
Owner

没有值能不能理解为0呢?

这个当然是不可以的!空值 nil0还是有区别的.

@yeqiliang
Copy link
Author

0的话 就去连线了啊。我要他不连线啊。。

@AAChartModel
Copy link
Owner

AAChartModel commented Aug 16, 2017

现已为AAChartModel新增Bool 类型属性connectNulls

AAPropStatementAndFuncStatement(assign, AAChartModel, BOOL , connectNulls);//设置折线是否断点重连(是否连接空值点)

@AAChartModel
Copy link
Owner

AAChartModel commented Aug 16, 2017

更新一下AAChartKitDemo文件,如下配置AAChartModel实例对象即可

        NSArray *seriesArr = @[
                               @{  @"name":@"本专业",
                                   @"data": @[@45,@88,@49,@43,@65,@56,@47,@28,@49,@44,@89,@55],
                                   @"zoneAxis":@"x",
                                   @"zones":@[
                                           @{
                                               @"value": @8
                                               },
                                           @{
                                               @"dashStyle": @"Dash"
                                               }]
                                   },
                               
                               @{  @"name":@"所有专业",
                                   @"data":@[@"",@"",@105,@109,@89,@"",@"",@120,@"",@"",@"",@""],
                                   },
                               
                               ];
        
        AAChartModel *chartModel= AAObject(AAChartModel)
        .connectNullsSet(true)//设置折线是否断点重连
        .chartTypeSet(chartType)
        .titleSet(@"编程语言热度")
        .subtitleSet(@"虚拟数据")
        .pointHollowSet(true)
        .categoriesSet(@[@"Java",@"Swift",@"Python",@"Ruby", @"PHP",@"Go",@"C",@"C#",@"C++",@"Perl",@"R",@"MATLAB",@"SQL"])
        .yAxisTitleSet(@"摄氏度")
        .seriesSet(seriesArr);
        
        return chartModel;

@yeqiliang
Copy link
Author

感谢楼主,帮了大忙了。。

@AAChartModel
Copy link
Owner

你的这个需求这么变态,角度又如此刁钻,竟然能够被完满解决,我自己都觉得吃惊😲,你们的产品经理应该被吊起来打!

@yeqiliang
Copy link
Author

也只能够想一想了,大体的都满足了,就剩小细节了我自己先看看,不行了,还得喊你。。- - !

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

3 participants