core-plot

How can I create better looking charts than those generated by Core Plot? [closed]

本秂侑毒 提交于 2019-12-05 05:22:13
问题 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 5 years ago . I'm looking for good library for iphone to draw charts (pie chart, bar chart). I've tested Core plot, which was recommended by many people, but I think the generated charts look poor. I saw example of good-looking charts in that application: Anyone knows what library was used there? Or what library can help me

iOS CorePlot how to install

南笙酒味 提交于 2019-12-05 04:48:56
问题 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

Keeping the y-axis fixed at place?

本小妞迷上赌 提交于 2019-12-04 20:46:57
this is the code in the continuation of this question.... Allow horizontal scrolling only in the core-plot barchart? -(BOOL)pointingDeviceDraggedAtPoint:(CGPoint)interactionPoint { if ( !self.allowsUserInteraction || !self.graph.plotArea ) { return NO; } CGPoint pointInPlotArea = [self.graph.plotArea convertPoint:interactionPoint toLayer:self.graph.plotArea]; if ( isDragging ) { pointInPlotArea.y = lastDragPoint.y;//-- Madhup Changed it for allwoing scrolling only in horizontal direction --// //-- Madhup Changed it for allwoing scrolling only in horizontal direction --// //CGPoint displacement

How to set custom tick marks in Core Plot to icons?

亡梦爱人 提交于 2019-12-04 18:33:15
Is there a way to make tick mark (major tick mark) to be UIImage (custom graphics) instead of text? I have values in one of the axis I need to present as icons. I do not see any delegate for this but maybe someone knows the trick? Axis labels can have any CPTLayer (which is a direct subclass of Core Animation's CALayer ) as its content. Set your image as the layer background and build a custom label using this layer. Several of the Core Plot example apps demonstrate custom labels, although they all use text labels. You have two options for adding your custom labels to the graph: Use the

Core-Plot CPTScatterPlot data labels

霸气de小男生 提交于 2019-12-04 16:53:16
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) constructScatterPlot { // Create graph from theme graph = [[CPTXYGraph alloc] initWithFrame:CGRectZero]; CPTTheme

How do I add labels to CPBarPlot barplots?

笑着哭i 提交于 2019-12-04 13:50:14
问题 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! 回答1: In order to manually set the labels for an axis in a Core Plot chart, you'll need to set the labelingPolicy of that

core plot custom Theme?

走远了吗. 提交于 2019-12-04 08:47:34
问题 I'm using Core-Plot for a trend chart in an iPhone app and haven't found how to customize the background. I can create a theme using the built-in themes, like kCPPlainWhiteTheme, but how can I change them? or create a new one? What i basically need to do is make the background transparent. EDIT / UPDATE I jus tested this code but it doesn't seem to work: //CPTheme *theme = [CPTheme themeNamed:kCPPlainWhiteTheme]; CPTheme *theme = [[CPTheme alloc]init]; chartTrend5 = (CPXYGraph *)[theme

Using Core Plot iPhone - Linker error

ぐ巨炮叔叔 提交于 2019-12-04 05:06:53
问题 I kept getting the following linker error when i try using Core Plot in my project... Undefined symbols for architecture i386: "_OBJC_CLASS_$_CPXYGraph", referenced from: objc-class-ref in CorePlotImplViewController.o "_OBJC_CLASS_$_CPPlotRange", referenced from: objc-class-ref in CorePlotImplViewController.o "_OBJC_CLASS_$_CPLineStyle", referenced from: objc-class-ref in CorePlotImplViewController.o "_OBJC_CLASS_$_CPColor", referenced from: objc-class-ref in CorePlotImplViewController.o "

CorePlot - Set y-Axis range to include all data points

本秂侑毒 提交于 2019-12-04 04:57:30
I have implemented a CorePlot graph in my iOS application, however I am unable to dynamically size the y-Axis based on the data points in the set. Some datasets range from 10-50, while others would range from 400-500. In both cases, I would like to have y-origin (0) visible. I have tried using the scaletofitplots method: [graph.defaultPlotSpace scaleToFitPlots:[graph allPlots]]; but this has no effect on the graphs, they still show the default Y-Axis range of 0 to 1. The only way that I can change the y-Axis is to do it manually via this: graph.defaultPlotSpace.yRange = [CPTPlotRange

How can I create better looking charts than those generated by Core Plot? [closed]

孤人 提交于 2019-12-03 21:11:59
I'm looking for good library for iphone to draw charts (pie chart, bar chart). I've tested Core plot, which was recommended by many people, but I think the generated charts look poor. I saw example of good-looking charts in that application: Anyone knows what library was used there? Or what library can help me achieve similar, nice look? coneybeare I would use CorePlot, but since you dont like it… In one project I used the Google Chart api. Nearly everything is customizable, the only downside is that you have to be connected the internet to fetch the image. Depending on your use case, it might