core-plot

How to animate the pie charts developed using core-plot library?

白昼怎懂夜的黑 提交于 2019-11-28 22:02:54
In the iPhone application Roambi, the pie chart shown can be animated to rotate with the user as if rotating a disc. We can hold and do lot of stuff with that. Someone mentioned that the Roambi app was developed using core-plot library: What library use Roambi app iPhone to draw chart? How can I manipulate a pie chart developed using Core plot? A quick look at the Core Plot source code reveals that CPPieChart 's inheritance looks like this: CPPieChart : CPPlot : CPAnnotationHostLayer : CPLayer : CALayer So you can see that in the end, CPPieChart is just a heavily subclassed CALayer . I might

CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 6.0'

☆樱花仙子☆ 提交于 2019-11-28 21:41:41
问题 I have dowloaded a project name called Plot_Gallery _ios which is mainly runs for plotting of graph.This was downloaded from core_plot,the main target project is Plot_Gallery_IOS and also it has sub project file called CorePlot-CocoaTouch.xcodeProj whic contain all library files which is mainly used of running of this project. Problem what i am facing is when i try to load this app in my ipad after compiling it gives one error i.e CodeSign error: code signing is required for product type

How to implement Zoom-in and Zoom-Out with Core-Plot line chart on iPhone?

百般思念 提交于 2019-11-28 19:21:10
问题 Is it possible to implement Zoom-in and Zoom-Out with Core-Plot Chart component on iPhone? If so please suggest me how to do it? Thanks in advance. 回答1: Yes, The way I do it is by adjusting the PlotSpace like so (probably not the best solution, but the best one i could come up with): -(void)zoomOut { CPXYPlotSpace *plotSpace = (CPXYPlotSpace *)graph.defaultPlotSpace; graphScaleX+=5; graphScaleY+=5; plotSpace.xRange = [CPPlotRange plotRangeWithLocation:plotSpace.xRange.location length

How do you provide labels for the axis of a Core Plot chart?

耗尽温柔 提交于 2019-11-28 17:36:53
I am using the Core Plot framework, and attempting to work through the example applications. Are there any tutorials for using this framework? Specifically, how do you provide labels for X and Y axes in a chart? Unfortunately, given the fact that the API of the framework has not yet stabilized, there aren't that many tutorials out there, and several of the ones that do exist are already outdated. The example applications really are the best sources to see how to work with the framework. For example, to provide custom axis labels, take a look at the CPTestApp-iPhone's

What are the alternatives to Core-Plot for drawing graphs in iPhone SDK

别说谁变了你拦得住时间么 提交于 2019-11-28 16:34:19
Are there any alternatives to Core-Plot for drawing graphs in iPhone SDK? I am having hard time integrating core-plot in my app. Lot of issues. Can you please suggest some alternatives to core-plot? meetpd Some of the alternatives that I found were: http://sebkade.wordpress.com/2010/05/06/basic-graph-class-for-iphone/ http://www.rgraph.net/ http://www.ivisualization.com/ http://www.vvi.com/apps/vvidget http://cocoacontrols.com/platforms/ios/controls/tapku-graph (thanks Sudo for this link) http://www.shinobicontrols.com/ (latest addition) https://github.com/sweetynebhwani/deSimpleChart These

CorePlot with swift: there is no yAxis.majorIntervalLength

好久不见. 提交于 2019-11-28 14:46:25
Here is how my graph looks like: I wan't the y axis to have an interval of 50 so i try doing this: var axisSet: CPTXYAxisSet = CPTXYAxisSet(layer: graph.axisSet) var y = axisSet.yAxis y.majorIntervalLength = 50 But majorIntervalLength doesn't seems to exist Swift doesn't support NSDecimal values. We've made some changes to the Core Plot API, replacing NSDecimal with NSDecimalNumber . The changes are on the release-2.0 branch and not in a release package yet. See Core Plot issue #96 for more discussion of the issue. 来源: https://stackoverflow.com/questions/27204557/coreplot-with-swift-there-is

how to pass time as xAxis data value in method numberForPlot using core plot?

こ雲淡風輕ζ 提交于 2019-11-28 11:42:51
问题 I need to create graph which is "Heart rate vs time". in xAxis I am showing time which is in format of "HH:mm:ss" and at y Axis its decimal value. My code is as below : data source for graph: var graphData:[(String,Double)] = [] let data = ("17:56:35",Double(65)) let data1 = ("18:04:13",Double(95)) let data2 = ("18:8:35",Double(25)) self.graphData.append(data) self.graphData.append(data1) self.graphData.append(data2) Set up graph and plot data code: func setGraph() { let tts =

Problems with legend in Core-Plot (pieChart)

风流意气都作罢 提交于 2019-11-28 09:41:22
问题 I have a problem drawing the legend of a pieChart with Core-Plot, because the name of each element of the chart in the legend is always the identifier of the CPTPieChart. Can someone help me? Thanks. This is the source code: -(void)constructPieChart { // Create pieChart from theme //[pieGraph applyTheme:theme]; pieChartView.hostedGraph = pieGraph; pieGraph.plotAreaFrame.masksToBorder = YES; pieGraph.paddingLeft = 0; pieGraph.paddingTop = 20.0; pieGraph.paddingRight = 0; pieGraph.paddingBottom

iphone, using an array to define in core-plot range

心已入冬 提交于 2019-11-28 06:42:43
问题 I'm almost done with a core-plot graph I've been working on for a couple of day now. There is something I am still not able to do (and I cannot find documentation on this), is to change the x axis labels to what I need. Today, I have an x axis with integer label beeing displayed every 5 values: "5 10 15...", I need to have labels coresponding to the last 24 hours. For instance if it's 15:00, I would need labels like: "15 16 17 ... 23 0 1 2 .. 15" I was thinking of using a NSArray for this and

Are there any examples for how to draw a line chart in Core Plot on the iPhone?

て烟熏妆下的殇ゞ 提交于 2019-11-28 02:17:45
问题 Is there some sample code or a tutorial out there about how to draw a line chart using the Core Plot framework? I can't find anything using Google. 回答1: If you have downloaded the framework, go to the examples directory within your checked-out version. There are several examples there, including CPTestApp-iPhone (which demonstrates line, bar, and pie charts), CPTestApp-iPad (same, but for the iPad), StockPlot (which downloads stock charts and plots the line graphs for them), and AAPLot (which