core-plot

iPhone CorePlot: Chart with user Touch Event

梦想的初衷 提交于 2019-12-10 09:36:32
问题 I am now using Core-plot to develop application. I am looking for some touch event for user touch one point of the chart, then it show up the price. When i take a look of the CorePlot website, It has a application show what i need http://code.google.com/p/core-plot/wiki/AppsUsingCorePlot I really want to do this function by Core-plot, i am now using CorePlot 0.4 i want to do the following function I really want to have a touch event which can show the specify price of the point user touch.

Core-Plot - animating a CPScatterPlot

喜夏-厌秋 提交于 2019-12-09 19:42:05
问题 I'm developing an iPhone application, in which I display a graph using Core-Plot framework. The graph is made of a CPScatterPlot, and what I'm trying to do is to animate the appearance of this plot on the screen. I'm not looking for a fade-in animation, or for the plot to be slid from the left of the screen. I'd rather like the user to see each point of the graph appearing one at a time (starting from the left), so that it would seem the graph is being traced slowly. I doubt Core-Plot

How to rotate bar chart like the example “CPTTestApp-iPhone” provided in core plot?

﹥>﹥吖頭↗ 提交于 2019-12-09 04:49:26
I am trying to have my bar chart have the same rotate behaviour as in the example provided in core plot. I am using xcode4 and been googling with no luck for a while to get this working . If i copy my code in the example it does work fine, how can I do it for my own project? See images below Portrait Landscape samuelsaumanchan Add this: $self.hostingView.autoresizingMask = (UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight);$ Credit isn't mine, the answer was also on Stack Overflow somewhere else...can't find it. PS: Obviously replace <self.hostingView> with whatever

iPhone Development: Core-Plot performance Slow when handling a huge data

三世轮回 提交于 2019-12-09 02:02:26
问题 iPhone Development: Core-Plot performance slow when handling a huge data. I tried to put 500 Data into Plot. The performance show that it is really slow. And most of the CandleStick Chart all mix together... Anyone has any solution for me, please? 回答1: Be aware of the size of the plot area. If you have more data points than pixels, filter the data set as @benzado suggested. Use graphical elements that are fast to draw--opaque colors, no gradients, no images, no shadows. If the bars are only

Core Plot 0.4 tutorial iOS [closed]

一个人想着一个人 提交于 2019-12-08 19:26:50
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Does anyone have a good tutorial/book recommendation for using Core Plot 0.4 in iOS. I have never used it before and from looking at the tutorials that they have linked to it does not make sense. I can't even run the Switch on the code tutorial. Where do I start? 回答1: If you decide to go with Core Plot 0.9, this

How do you draw vertical line using coreplot CPPlotSymbol?

那年仲夏 提交于 2019-12-08 12:22:32
问题 How do I draw a vertical line on plotSymbol using Custom PlotSymbol? If it would be grateful, give any samples regarding that. Sri 回答1: You simply create a CGPath that describes the outline of your custom symbol. Here's a sample from CPTestApp (in the CorePlot/examples folder): CPPlotSymbol *symbol = [[[CPPlotSymbol alloc] init] autorelease]; CGMutablePathRef path = CGPathCreateMutable(); CGPathMoveToPoint(path, NULL, 0., 0.); CGPathAddEllipseInRect(path, NULL, CGRectMake(0., 0., 10., 10.));

Core Plot: Tick Intervals

天大地大妈咪最大 提交于 2019-12-08 10:34:09
问题 I'm using Core Plot in an iOS-Application and want to format the steps of axis. All I get is steps of 0.5 and I don't know what else to change. My tick Locations should by 5, 10, 15 and 20. Here is the code that draws my axis: -(void) addAxis{ // Create grid line styles CPTMutableLineStyle *majorGridLineStyle = [CPTMutableLineStyle lineStyle]; majorGridLineStyle.lineWidth = 1.0f; majorGridLineStyle.lineColor = [[CPTColor whiteColor] colorWithAlphaComponent:0.75]; NSSet *majorTickLocations =

iOS5 Core Plot fit plot to visible area

徘徊边缘 提交于 2019-12-08 10:28:45
问题 I got a plot for which I defined the Y range as -2000 to 2000 plotSpace.xRange = [CPTPlotRange plotRangeWithLocation:CPTDecimalFromInt(1) length:CPTDecimalFromInt(600)]; plotSpace.yRange = [CPTPlotRange plotRangeWithLocation:CPTDecimalFromInt(-2000) length:CPTDecimalFromInt(2000)]; The plot is fitted to the graph along the X axis, causing the majority of the Y axis to be cut off. How can I ask the core plot to autoscale the Y axis to make the maximum value in a series just touch the top of

Showing images on Scattering Graph as plot symbols in Core plot iOS

前提是你 提交于 2019-12-08 09:21:37
问题 I have a requirement of showing images at the plot symbols in my scattering Graph. Right now I am using CPTPlotSymbol to plot symbols on the graph. But all I can get with it are the predefined objects. Eg. ellipsePlotSymbol, dashPlotSymbol, trianglePlotSymbol. But I need to plot an image instead. Could you help me in acheiving this. Thanks a lot. 回答1: Got the answer after trying a bit. First of all, I built a Custom CPTLayer and inside it used the image to be filled. CustomImageForScatterPlot

CPTXYScatterPlot - Can I set the Z order of plot symbols?

 ̄綄美尐妖づ 提交于 2019-12-08 07:28:51
问题 Using Core Plot's CPTScatterPlot, I've made a bubble chart that looks like the above. I've implemented plotSymbolWasSelectedAtRecordIndex in my delegate so I can detect when the user touches one of the bubbles. Using this screenshot as an example, I want to be able to highlight the yellow bubble and bring it in front of the red one when the user touches it. In graphical terms, I want to set the Z order of the selected CPTPlotSymbol to be higher than the others. How can I accomplish that? I'm