mailes

Results comments of mailes

需要两个都设置. self.myCategoryView.defaultSelectedIndex=0; self.listContainerView.defaultSelectedIndex=0;

同问,这个怎么解决。

> @mailes 你用的是最近最新的代码吗? 可以了,用最新的代码。

```objc AAChartModel *aaChartModel= AAObject(AAChartModel) .chartTypeSet(AAChartTypeAreaspline) .titleSet(@"") .subtitleSet(@"") .categoriesSet(categorys) .yAxisTitleSet(@"") .yAxisMinSet(@10.0) .yAxisMaxSet(@130.0) .xAxisTickIntervalSet(@2) .seriesSet(@[ AAObject(AASeriesElement) .nameSet(@"体重") .colorSet(@"#2494F3") .dataSet(arys) ]) ; aaChartModel.legendEnabled = NO; aaChartModel.yAxisVisible = YES; aaChartModel.easyGradientColors = YES; aaChartModel.zoomType =...

.yAxisMinSet([NSNumber numberWithInteger:5]) .yAxisMaxSet([NSNumber numberWithInteger:80]) 这样设置也不行。

- ![Simulator Screen Shot - iPhone 8 - 2019-10-12 at 15 52 31](https://user-images.githubusercontent.com/2554806/66697502-c27cf080-ed08-11e9-981e-43b1d9da2d6a.png)

> 请贴上你的代码看看(贴代码文本,不要截图) 请看上面,谢谢。

突然好用了! 发现必须得是先声明 NSNumber * minnum=xxx// 然后在yAxisMinSet(minnum) 这样才好用! 如果直接是yAxisMinSet(@10) 这样不起效果,最大值也是! 不知道什么原因!!!

> [f193d96](https://github.com/AAChartModel/AAChartKit/commit/f193d96fec41597115195aecbf458b454d17e267) > > 是因为我在此次提交中为 X轴和 Y轴新增了 startOnTick 和 endOnTick 这两个属性. 之前提交了代码之后忘了说了. 可以了!!!!!很棒!!!!!