试图为我的 gridLines 获得一条简单的虚线,但无法让它工作(目前是块实线)。互联网上没有太多帮助!
CPTMutableLineStyle *gridLineStyle = [CPTMutableLineStyle lineStyle];
gridLineStyle.lineColor = [self axisGreyClr];
//gridLineStyle.lineWidth = 1.0f;
gridLineStyle.dashPattern = [NSArray arrayWithObjects:[NSNumber numberWithFloat:0.8f], nil];
gridLineStyle.patternPhase=0.0f;