core-plot

iOS CorePlot how to install

北战南征 提交于 2019-12-03 20:46:18
I am trying to use CorePlot in one of my iOS projects, but even after following the instructions and looking around online, I haven't managed to correctly install the framework. I feel like the documentation has not evolved and no longer describes the correct way to install the framework. I followed these instructions . But some things do not make sense to me, either because they are no longer current or because I don't understand. For instance, when I am told to add the library to the "Link binaries with binary" section, the Core Plot library is highlighted in red. Then when I am told to edit

How do I add labels to CPBarPlot barplots?

倾然丶 夕夏残阳落幕 提交于 2019-12-03 08:54:43
I'm completely new to Core Plot and have a working bar graph, but the visual is kind of useless for me unless I know which object is represented in each bar. I have seen that there is a method called 'fieldIdentifiers' but do not know how to implement it, nor can I find any documentation (if this even the correct method). Can you steer me in the right direction? Thanks! In order to manually set the labels for an axis in a Core Plot chart, you'll need to set the labelingPolicy of that axis to CPAxisLabelingPolicyNone and provide the labels yourself. For example, the following code will set

iPhone Multi touch interactive to CorePlot

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-03 06:07:25
I'm developing an iPhone application with core-plot chart. With the help of some tutorials, i managed to do it with single touch and drag. How can I make it with multiple touch and drag? Anybody please help me? ViewController.m - (void)viewDidLoad { [super viewDidLoad]; EskPlotTheme *defaultTheme = [[EskPlotTheme alloc] init]; linePlot = [[EskLinePlot alloc] init]; linePlot.delegate = self; [linePlot renderInLayer:lineHostingView withTheme:defaultTheme]; [defaultTheme release]; } EskLinePlot.m - (id)init { self = [super init]; if (self) { // setting up the sample data here. sampleData = [

How to save a graphic created by CorePlot to a jpg file

瘦欲@ 提交于 2019-12-03 06:04:56
问题 I am using CorePlot to draw different graphs in my application. Then, I would like to save this graph to a jpg file and publish to some social networking site (e.g., Twitter). I did some documentation reading and understood that the following methods could be useful for me: CGBitmapContextCreateImage: creating a CGImage as a copy from a bitmap graphics context (i.e., the view where my graph is situated or the whole screen - have I understood right?) CGImageCreateWithImageInRect: I can clip

How do remove the border around a core-plot graph

青春壹個敷衍的年華 提交于 2019-12-03 04:16:27
问题 I am trying to remove the border around a core plot graph on the iPhone - but seem to be struggling on what should be simple in my mind. Pointers please! 回答1: You should be able to nil out the borderLineStyle on the graph's plotArea to remove the border: graph.plotAreaFrame.borderLineStyle = nil; // don't draw a border You could also create your own theme, using the ones in the framework as examples, and simply not set the borderLineStyle in that. 回答2: None of the answers worked for me. This

Core-Plot iPhone Animation Examples

China☆狼群 提交于 2019-12-03 04:04:34
问题 I've been looking into core-plot for the iPhone and I'm having trouble finding any examples of animation actually being used. What I need to see is an example of how to use core-plots animation to add an extra plot to a graph when someone clicks a button. If anyone can produce and example, or show me a link to one, that would be great. Regards, Craig 回答1: The official CPAnimation classes within Core Plot are just stubs right now. At some point, we'll enable the full functionality of those. In

How to save a graphic created by CorePlot to a jpg file

亡梦爱人 提交于 2019-12-02 19:32:09
I am using CorePlot to draw different graphs in my application. Then, I would like to save this graph to a jpg file and publish to some social networking site (e.g., Twitter). I did some documentation reading and understood that the following methods could be useful for me: CGBitmapContextCreateImage: creating a CGImage as a copy from a bitmap graphics context (i.e., the view where my graph is situated or the whole screen - have I understood right?) CGImageCreateWithImageInRect: I can clip out some part of the image if needed [UIImage imageWithCGImage]: converting CGImage to an UIImage object

How do remove the border around a core-plot graph

余生颓废 提交于 2019-12-02 17:34:10
I am trying to remove the border around a core plot graph on the iPhone - but seem to be struggling on what should be simple in my mind. Pointers please! Brad Larson You should be able to nil out the borderLineStyle on the graph's plotArea to remove the border: graph.plotAreaFrame.borderLineStyle = nil; // don't draw a border You could also create your own theme, using the ones in the framework as examples, and simply not set the borderLineStyle in that. None of the answers worked for me. This did the job: graph.paddingLeft = 0; graph.paddingRight = 0; graph.paddingTop = 0; graph.paddingBottom

Using core plot for iPhone, drawing date on x axis

丶灬走出姿态 提交于 2019-12-02 17:33:18
I have available an array of dictionary that contains NSDate and NSNumber values. I wanted to plot date on X axis. For plotting I need to supply xRanges to plot with some decimal values. I don't understand how can I supply NSDate values to xRange (low and length). And what should be there in this method: -(NSNumber *)numberForPlot:(CPPlot *)plot field:(NSUInteger)fieldEnum recordIndex:(NSUInteger)index I mean how my date value will be returned as NSNumber ? I think I should use some interval over there, but what should be the exact conversion? Can any one explain me what are the exact

Core-Plot iPhone Animation Examples

十年热恋 提交于 2019-12-02 16:26:00
I've been looking into core-plot for the iPhone and I'm having trouble finding any examples of animation actually being used. What I need to see is an example of how to use core-plots animation to add an extra plot to a graph when someone clicks a button. If anyone can produce and example, or show me a link to one, that would be great. Regards, Craig The official CPAnimation classes within Core Plot are just stubs right now. At some point, we'll enable the full functionality of those. In the meantime, every visible element in Core Plot is a Core Animation CALayer, so you can animate these