我希望这条线是虚线:
RadarChartDataSet *benchMarkSet = [[RadarChartDataSet alloc] initWithYVals:benchMark label:@"Set 2"];
[benchMarkSet setColor:[UIColor colorWithRed:125/255.0f green:125/255.0f blue:125/255.0f alpha:0.6f]];
benchMarkSet.fillAlpha = 0.5f;
benchMarkSet.lineWidth = 2.0;
benchMarkSet.highlightLineWidth = 0.5;
benchMarkSet.highlightLineDashPhase = 0;
benchMarkSet.highlightLineDashLengths = @[@10, @5, @6, @5, @10, @0.0];
benchMarkSet.highlightColor = [UIColor whiteColor];
RadarChartData *data = [[RadarChartData alloc] initWithXVals:xVals dataSets:@[set2, benchMarkSet]];
[data setValueFont:[UIFont fontWithName:@"HelveticaNeue-Light" size:8.f]];
[data setDrawValues:NO];
self.radarChart.data = data;
我尝试过使用这些方法:highlightLineWidth、highlightColor、highlightDashPhase、highlightDashLenghts 无济于事 - 如果有人在此之前做过这将是很棒的!目前,这些方法似乎无济于事。