我正在使用iPhone上的核心情节,我正在尝试设置ScatterPlot图形,使[0,0]坐标始终位于同一位置(距离左边40像素,40像素)从底部)
我只是浪费了4个小时试图让它工作,但仍然不知道,帮助!
奖金问题 - 如何设置轴以仅显示> 0部分?
我正在关注此链接:
http://www.jaysonjc.com/programming/pie-chart-drawing-in-iphone-using-core-plot-library.html
在Xcode中绘制值.但对我来说,添加子项目CorePlot-CocoaTouch.xcodeproj不包含libCorePlot-CocoaTouch.a库二进制文件以遵循进一步的说明.我正在使用XCode 4.0.2 ..

它应该是这样的:

我已经花了一整天试图包含该框架:(
我想在Mac OS X中使用CorePlot.framework.但是,我无法正确安装它虽然花了我几个小时.
我从谷歌主机网站下载了它(0.4版本),并试图将CorePlot.framework放在"/ Library/Frameworks /"或其他一些自定义位置.
我也将它添加到"链接二进制文件和库"中.不幸的是,编译器总是找不到"".
任何有经验的人都可以给我一些建议来安装和使用它吗?
iPhone sdk:核心情节如何在右侧显示y轴?
我现在在iphone sdk中使用Core-plot,
这就是我到目前为止所做的

但我想把Yaxis放在右手边.
我启用了allowuserInteractive
**plotSpace.allowsUserInteraction=NO;
volumePlotSpace.allowsUserInteraction=YES;**
Run Code Online (Sandbox Code Playgroud)
但我希望X轴和Y轴始终保持在右侧和底部,
无论用户规模大小......
像这样:

iPhone开发:处理大量数据时Core-Plot性能变慢.
我试图把500个数据放到Plot中.表现表明它真的很慢.
大多数CandleStick图表都混合在一起......
有人对我有任何解决方案吗?
![在此处输入图像说明] [1]
任何人都可以告诉如何在核心图上从y轴4到10绘制深蓝色遮蔽区域,并通过x轴,如图所示.
我一直试图解决这个问题,但没能这样做.我也无法在网上找到任何好的例子.
我已经尝试过rowHeightsThatFit:但是不要让它工作.
我想在一行上列出底层传说,确保它被看到.

我正在使用Coreplot API创建条形图.当我尝试将这个相同的代码作为单个项目运行时,它工作正常但是当我将它集成到我的项目里面时UINavigationController它给了我一个错误.
GraphView.h
@interface GraphView : CPTGraphHostingView <CPTPlotDataSource, CPTPlotSpaceDelegate>
{
CPTXYGraph *graph;
NSArray *dates;
}
@property(nonatomic, retain) NSArray *dates;
Run Code Online (Sandbox Code Playgroud)
GraphView.m
dates = [NSArray arrayWithObjects:@"2012-05-01", @"2012-05-02", @"2012-05-03",
@"2012-05-04", @"2012-05-05", @"2012-05-06", @"2012-05-07", @"2012-05-08", @"2012-05-09",@"2012-05-10",@"2012-05-11",@"2012-05-12",@"2012-05-13",@"2012-05-14",@"2012-05-15",@"2012-05-16",@"2012-05-17",@"2012-05-18",@"2012-05-19",@"2012-05-20",nil];
- (NSUInteger)numberOfRecordsForPlot:(CPTPlot *)plot
{
return dates.count;
}
Run Code Online (Sandbox Code Playgroud)
在返回dates.count它给我错误.
[__NSArrayI count]:发送到解除分配的实例0x6dbfd10的消息
我正在使用此链接中的代码.目前如果我有50 bar柱或150 bar柱,那么下面的标签是压缩的,我想在x轴上进行水平滚动而不是压缩x轴.
我试过这个:
plotSpace.xRange = CPTPlotRangeplotRangeWithLocation:CPTDecimalFromInt(-1)length:CPTDecimalFromInt(50)];
Run Code Online (Sandbox Code Playgroud)
从文件中附加代码:
#import "GraphView.h"
@implementation GraphView
- (void)generateData
{
NSMutableDictionary *dataTemp = [[NSMutableDictionary alloc] init];
//Array containing all the dates that will be displayed on the X axis
dates = [NSArray arrayWithObjects:@"2012-05-01", @"2012-05-02", @"2012-05-03",
@"2012-05-04", @"2012-05-05", @"2012-05-06", @"2012-05-07", nil];
//Dictionary containing the name of the two sets and their associated color
//used for the demo
sets = [NSDictionary dictionaryWithObjectsAndKeys:[UIColor blueColor], @"Plot 1",
[UIColor redColor], @"Plot 2",
[UIColor greenColor], @"Plot 3", nil];
//Generate …Run Code Online (Sandbox Code Playgroud) 我搜索了这个问题,但没有得到适当的答案.
我在我的应用程序中使用CorePlote作为图形和图表.我试图将饼图图例自定义为圆形,但我没有找到任何方法或属性.
有人对此有任何想法吗?