iPhone COREPLOT:条形图未正确显示

iPhone COREPLOT:条形图未正确显示,iphone,cocoa-touch,core-plot,Iphone,Cocoa Touch,Core Plot,嗨,在我的iPhone应用程序中,我正在实现coreplot VarticalBar图表 虽然我为Y轴取了更大的值,但它显示到一定的极限,仅如图所示,它显示的条高达N500000,但实际上我传递的是更大的值。(我通过下面给出的图形数组传递值) 有什么问题吗 请帮忙 这是图像和代码 这里我传递的是YRange的值 plotSpace.yRange=[CPPlotRange plotRangeWithLocation:cpdecimalfloat(-5000000)长度:cpdecimalfloa

嗨,在我的iPhone应用程序中,我正在实现coreplot VarticalBar图表

虽然我为Y轴取了更大的值,但它显示到一定的极限,仅如图所示,它显示的条高达N500000,但实际上我传递的是更大的值。(我通过下面给出的图形数组传递值)

有什么问题吗

请帮忙

这是图像和代码

这里我传递的是YRange的值

plotSpace.yRange=[CPPlotRange plotRangeWithLocation:cpdecimalfloat(-5000000)长度:cpdecimalfloat(10000000)]; plotSpace.xRange=[CPPlotRange plotRangeWithLocation:cpdecimalfloat(0.0f)长度:cpdecimalfloat(21.0f)]

用于生成Y轴标签的代码

CPXYAxis *y = axisSet.yAxis;
y.axisLineStyle =nil;
               y.majorTickLineStyle = nil;
       y.minorTickLineStyle = nil;
y.majorIntervalLength = CPDecimalFromString(@"2500000");
y.orthogonalCoordinateDecimal = CPDecimalFromString(@"0.0");
这里我给出了记号位置的值

  NSArray *marginArray =[NSArray arrayWithObjects:
                       [NSDecimalNumber numberWithInt:-5000000],
                       [NSDecimalNumber numberWithInt:-2500000],
                       [NSDecimalNumber numberWithInt:00],
                       [NSDecimalNumber numberWithInt:2500000],
                       [NSDecimalNumber numberWithInt:5000000],
                       [NSDecimalNumber numberWithInt:7500000],
                       [NSDecimalNumber numberWithInt:10000000],
                       nil];
在这里,我给标签的名称

y.labelingPolicy = CPAxisLabelingPolicyNone;
NSArray *yAxisLabels1 = [NSArray arrayWithObjects:@"-N5000000", @"-N2500000",@"N0",@"N2500000",@"N5000000", @"N7500000",@"N10000000", nil];

我正在传递此数组以绘制图形

NSArray *roiGraph = [NSArray arrayWithObjects:
                                 [NSDecimalNumber numberWithInt:-5000000],                                                                                                                    
                                 [NSDecimalNumber numberWithInt:5000],    
                                 [NSDecimalNumber numberWithInt:10000000],                                                                      
                                 [NSDecimalNumber numberWithInt:-5000000],  
                                 [NSDecimalNumber numberWithInt:9000000],                                                                                                                                     
                                 [NSDecimalNumber numberWithInt:20005],   
                                 [NSDecimalNumber numberWithInt:50000],
                                 [NSDecimalNumber numberWithInt:7500000],     
                                 [NSDecimalNumber numberWithInt:400000],    
                                 [NSDecimalNumber numberWithInt:220000],     
                                 nil];   

仔细看这条线

 plotSpace.yRange = [CPPlotRange plotRangeWithLocation:CPDecimalFromFloat(-5000000) length:CPDecimalFromFloat(10000000)];
将“长度”设置为10mln,这意味着可见区域为(-5mln到+5mln)。将长度设置为其他值,例如15 mln,然后再次查看结果

 plotSpace.yRange = [CPPlotRange plotRangeWithLocation:CPDecimalFromFloat(-5000000) length:CPDecimalFromFloat(10000000)];