Skip to content

Commit 6fd0fc7

Browse files
committed
Set axis tickInterval and yAxis lineWidth
Add explicit xAxis.tickInterval = @1 and yAxis.lineWidth = @0 in the polygon polar chart options to control x-axis tick spacing and remove an extra outer ring around the polygon. Minor formatting adjustment for the configureThePolygonPolarChart method.
1 parent 301f095 commit 6fd0fc7

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

AAChartKitDemo/Demo/AAOptions/Composer/PolarChartOptionsComposer.m

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ @interface PolarChartOptionsComposer ()
1414

1515
@implementation PolarChartOptionsComposer
1616

17-
18-
19-
2017
+ (AAOptions *)configureThePolygonPolarChart {
2118
AAChartModel *aaChartModel = AAChartModel.new
2219
.chartTypeSet(AAChartTypeArea)//图表类型
@@ -94,8 +91,10 @@ + (AAOptions *)configureTriangleRadarChart {
9491
AAOptions *aaOptions = aaChartModel.aa_toAAOptions;
9592
aaOptions.yAxis.gridLineInterpolation = AAChartYAxisGridLineInterpolationTypePolygon;
9693

94+
aaOptions.xAxis.tickInterval = @1;
9795
aaOptions.xAxis.lineWidth = @0;//避免多边形外环之外有额外套了一层无用的外环
9896
aaOptions.xAxis.gridLineColor = AARgbaColor(30, 144, 255, 0.6);
97+
aaOptions.yAxis.lineWidth = @0;
9998
aaOptions.yAxis.gridLineColor = AARgbaColor(30, 144, 255, 1.0);
10099

101100
NSArray *aaPlotBandsArr = @[

0 commit comments

Comments
 (0)