我想排隊與背景圖像的主要網格線在我看來,所以我這個迄今所做的:Coreplot majorTickLocations使用視圖座標
CPTXYAxisSet *axisSet = (CPTXYAxisSet *) self.hostView.hostedGraph.axisSet;
CPTAxis *x = axisSet.xAxis;
x.labelingPolicy = CPTAxisLabelingPolicyLocationsProvided;
//Other x axis config
NSMutableSet *xMajorLocations = [NSMutableSet set];
[xMajorLocations addObject:[NSNumber numberWithFloat:0.0f]];
[xMajorLocations addObject:[NSNumber numberWithFloat:341.0f]];
[xMajorLocations addObject:[NSNumber numberWithFloat:638.0f]];
x.majorTickLocations = xMajorLocations;
的問題是主要的位置是相對的到繪製的數據。有沒有辦法使用視圖座標?當我縮放時,我想讓它們保持靜止CPTAxisLabelingPolicyEqualDivisions
你可以直接添加行到背景圖片嗎? –
我可以,但他們不會喜歡與x軸標籤,那麼,對吧? –