core-plot

how to set plot delegate in coreplot

淺唱寂寞╮ 提交于 2019-12-08 05:57:24
问题 This is a follow up question from this link : coreplot bar tap not working and the answer is : Set the plot delegate to your bar plot delegate object. PLease can anybody tell me how .I am trying to create a simple bar-chart with on tap for 10 days and there is no tutorial which explains the process in simple words. It would be a great help and I would really appreciate it .Thanks in advance. 回答1: You need to set your CPTBarPlot delegate. Until it is set, the CPTBarPlot object doesn't know

Core Plot and Xcode 5.1 - How to convert Core Plot to ARC?

三世轮回 提交于 2019-12-08 03:31:04
问题 I just installed Xcode 5.1 and found that it definitely requires projects to use ARC. I get error: garbage collection is no longer supported when trying to compile Core Plot (version 1.4). Out of curiosity I told Xcode to convert Core Plot to ARC. But it fails with ARC forbids Objective-C objects in struct in file CPTPlatformSpecificFunctions.m . I don't want to dive into Core Plot and break something by trying to fix this or similar errors. Is there a compiler setting I have overlooked? Or

Classic problem: CorePlot-CocoaTouch.h : No such file or directory

北城余情 提交于 2019-12-08 03:16:56
问题 Please excuse me for asking this old problem but I have really tried every solutions I could find in this forum and over at stackoverflow, and the problem still hasn't been resolved...Please help me :( So here is what I did: 1) I downloaded 'CorePlot 0.2.2.zip' into my project folder. 2) Drag and drop the 'CorePlot-CocoaTouch.xcodeproj' into my project. Uncheck the "Copy items..." and change "Relative to project". 3) Drag 'libCorePlot-CocoaTouch.a' to Target's 'Link Binary with Libraries"

Application get stuck when drawing nearly 40 Scatter Plots using Core Plot in IPad

天涯浪子 提交于 2019-12-07 18:21:32
I am developing an iPad app , it has the option to show Scatter Plots user able to plot the points.I have used core plot library.i have to show 40 Scatter plots in a view controller. my application becomes not responding and get quits when i load 25 graphs. Is there any limitation (No.of Scatter plot counts) in Core plot for a View Controller to show? What is the optimal way to load Scatter Plots using Core Plot? There's no hard limit on the number of graphs, but you will eventually run out of memory and/or other GPU resources. The maximum number you can show in a particular app will depend on

Positioning label on CPTBarPlot (Core-Plot)

旧街凉风 提交于 2019-12-07 08:21:57
问题 I am trying to change default position of labels in Bar chart with Core-Plot. I am using this method: -(CPTLayer *)dataLabelForPlot:(CPTPlot *)plot recordIndex:(NSUInteger)idx; And I return: return textLayer = [[CPTTextLayer alloc] initWithText:@"2222" style:textStyle]; I get this result: But I want to appear as follows: Any idea? I tried to find answer on documentation, but I has been impossible. 回答1: Use a negative labelOffset for the bar plot. The default is +10 which puts the labels 10

Core Plot and Xcode 5.1 - How to convert Core Plot to ARC?

爷,独闯天下 提交于 2019-12-06 14:03:38
I just installed Xcode 5.1 and found that it definitely requires projects to use ARC. I get error: garbage collection is no longer supported when trying to compile Core Plot (version 1.4). Out of curiosity I told Xcode to convert Core Plot to ARC. But it fails with ARC forbids Objective-C objects in struct in file CPTPlatformSpecificFunctions.m . I don't want to dive into Core Plot and break something by trying to fix this or similar errors. Is there a compiler setting I have overlooked? Or will there be a Core Plot version which uses ARC soon? Thanks, Dirk Xcode 5.1 doesn't require projects

core-plot, unable to plot two graphs

无人久伴 提交于 2019-12-06 12:17:33
问题 I'm currently trying to use the core-plot library to graph some data I get via JSON. I'm trying to plot two graphs on the same chart but am unable to achieve this. When I simply plot just one chart, it works correctly. Below is my scatter plot code using the core-plot library. #pragma mark - #pragma mark Plot construction methods - (void)constructScatterPlot { NSMutableArray *appleContentArray = [NSMutableArray arrayWithCapacity:270]; NSMutableArray *googleContentArray = [NSMutableArray

coreplot bar tap not working

耗尽温柔 提交于 2019-12-06 11:18:01
I have downloaded this code from Github : https://github.com/gilthonweapps/CorePlotBarChartExample .How to get onTap for bar selected ? I am using the following code: #pragma mark - CPTBarPlotDelegate methods -(void)barPlot:(CPTBarPlot *)plot barWasSelectedAtRecordIndex:(NSUInteger)index { NSLog(@"barWasSelectedAtRecordIndex %d", index); } But this is not working (Its not recognizing the Tap).Please Help. Thanks in Advance and Happy New Year. Set the plot delegate to your bar plot delegate object. This is usually the view controller but it does not have to be. 来源: https://stackoverflow.com

Core-Plot CPTScatterPlot data labels

[亡魂溺海] 提交于 2019-12-06 09:44:50
问题 When you create a scatter plot it auto-labels the points on the graph itself. I find this very annoying and want to shut it off as it isn't useful for what we are doing. Is there a way without removing all labels? TO BE CLEAR, these show up without adding any annotations.. I want to remove this default behavior. I want to remove the 1, 2, 3, 4, 5, 6, 7 etc in the graph. Here is the code I'm using to create the graph. As you can see it doesn't set any annotations, etc. -(void)

Syntax error before '^' token

房东的猫 提交于 2019-12-06 08:28:07
I just upgraded core-plot to the latest version in an application that was already running successful plots. I followed the fairly simple instructions to the letter, however I'm getting 20 syntax errors in UIView.h. It seems that I'm not alone , but nobody has of yet posted a solution to the issue. An example: This code from UIView.h + (void)animateWithDuration:(NSTimeInterval)duration delay:(NSTimeInterval)delay options:(UIViewAnimationOptions)options animations:(void (^)(void))animations completion:(void (^)(BOOL finished))completion __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_4_0); gives the