Closed zhongxunchao closed 1 year ago
附代码如下:
_aaChartModel = AAChartModel.new
.chartTypeSet(AAChartTypeSpline)//图表类型
.colorsThemeSet(@[@"#fe117c",@"#ffc069"])//设置主题颜色数组
.tooltipValueSuffixSet(@"℃")//设置浮动提示框单位后缀
.yAxisLineWidthSet(@0)//Y轴轴线线宽为0即是隐藏Y轴轴线
.yAxisGridLineStyleSet([AALineStyle styleWithWidth:@0])//y轴横向分割线/Users/zhongxunchao/Documents/DFMC/m57opensdk/M57IOSOpenSDK宽度为0(即是隐藏分割线)
.markerRadiusSet(@0)
.seriesSet(@[
AASeriesElement.new
.nameSet(@"2017")
.markerSet(AAMarker.new
.radiusSet(@0)//曲线连接点半径
.symbolSet(AAChartSymbolTypeCircle)//曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle"
.fillColorSet(AAColor.yellowColor)//点的填充色(用来设置折线连接点的填充色)
.lineWidthSet(@5)//外沿线的宽度(用来设置折线连接点的轮廓描边的宽度)
//外沿线的颜色(用来设置折线连接点的轮廓描边颜色,当值为空字符串时,默认取数据点或数据列的颜色)
.lineColorSet(AAColor.yellowColor)
)
.dataSet(@[@7.0, @6.9, @9.5, @14.5, @18.2, @21.5, @25.2, @26.5, @23.3, @18.3, @13.9, @9.6]),
AASeriesElement.new
.nameSet(@"2018")
.markerSet(AAMarker.new
.radiusSet(@0)//曲线连接点半径
.symbolSet(AAChartSymbolTypeCircle)//曲线点类型:"circle", "square", "diamond", "triangle","triangle-down",默认是"circle"
.fillColorSet(AAColor.blueColor)//点的填充色(用来设置折线连接点的填充色)
.lineWidthSet(@5)//外沿线的宽度(用来设置折线连接点的轮廓描边的宽度)
//外沿线的颜色(用来设置折线连接点的轮廓描边颜色,当值为空字符串时,默认取数据点或数据列的颜色)
.lineColorSet(AAColor.blueColor)
)
.dataSet(@[@0.2, @0.8, @5.7, @11.3, @17.0, @22.0, @24.8, @24.1, @20.1, @14.1, @8.6, @2.5])
]);
// [self configureLineChartAndSplineChartStyle];
// [self.aaChartView aa_drawChartWithOptions:self.aaOptions];
[self.aaChartView aa_drawChartWithChartModel:self.aaChartModel];
重复问题, 参考:
这里只是想去除外层的光圈,内部的mark点仍然保留。设置过AAMarkerHover.new.enabledSet(false)之后,mark点也看不见了。
如下图所示,绘制一条或多条曲线的情况下,总会有一条默认曲线在点击mark点后,mark点周围展示一圈半透明的光圈(红色箭头所指)。这个光圈可以去除吗?![1668042093401](https://user-images.githubusercontent.com/10545093/200974842-2c21f660-37fa-4ad0-941e-011441324e56.jpg)