Sample code using Core-Plot for iPhone - iphone

I'm trying to find some sample code for Core-Plot on the iPhone. So far, all the examples I've found plot equations such as X^2 or 1/X, etc. over some range. My goal is to find some sample code that just plots two points ((1,2) and (2,3), for example) and connects them with a line.
It seems simple, but I've yet to find out how to approach this. I've checked the Core-Plot Wiki, and am again only able to find more complex examples.
Appreciate any help, thank you.

Have you looked at the examples included with Core Plot? There's a mix of Mac and iOS apps. Except for the hosting view, the API is identical on both platforms.

Related

Create a location-based rotating globe similar to Google Earth using C# and Unity?

I am currently in the process of developing an iOS app involving a touch-enabled rotating globe. I have already found past links for this such as: http://answers.unity3d.com/questions/255118/rotating-an-object-with-touch.html
The question is:
Is possible to make this object location-oriented? I plan to create a cel-shaded globe with different points on the object related to specific locations.
Edit: These locations are not GPS oriented, but just meaning points on an object (globe) represented by objects (tree).
Here is an example I created for a class using Dreamweaver many years ago that would look similar, but touch-oriented instead of using 'West' and 'East' buttons located in the top left of the video: https://youtu.be/UZACQtnQfkA
Sorry the example is in video form, I don't have the code available for comparison at the moment.
This question is being naive and you seem to lack knowledge in Unity3D. I suggest you to go through their official tutorials and get and idea. Then ask if you have any specific questions on issues you're encountering.
You can follow some tutorials to create such scene by PlannetaryTerrain. You can see some efforts on YouTube as well.
Apart from that creating terrains would be a plus. Follow the tutorial by Kostiantyn. Also Follow the Faux gravity tutorial by Sebastian

How to draw line graphs in Swift?

For a new app I need to draw a line graph. That graph needs to consist of two references lines, and one line based on measurements per day (min 14 days, max 32 days). Up to the current date, that line based on measurements needs to be solid. From the current date up to the max, it needs to be dashed. For now, the data is in arrays.
I tried to find examples and also saw a framework called Core Plot. I do like the design of the Health graphs a lot. Maybe that is also possible with Core Plot.
Instead of figuring out the details myself, I was hoping I could find somebody (with experience with Core Plot) to setup an example app. So I have more of a head start developing my own app. Willing to pay for the effort, though.
Hope Stackoverflow is the right place for such a question.
Thanks.
Jan
Stack overflow is most definitely not the right site for "please do all my work for me" questions. If you look at the Core-Plot project on Github it includes an example application, and a wiki with sample plots
It looks like the DropPlot Example App (from the samples wiki) is an example of a line plot. I suggest you start from that.
Here's what it's graph looks like

Draw graph on iPhone with something easier then Core Plot

I need to draw one simple graph in my app. I tried to make it with Core Plot, but I can't even import it in my project properly. Is there any more simple but still pretty framework?
You can following link show the plot chart with examples Here
Also here that type of the question aries which is below.
1)Core plot chart
2)Library available into IOS
This may helping to lot and decide you which is the better for you implementation is easy.

iPhone, how do I draw a simple line graph from an array of prices and dates?

I'm looking for some very simple to develop line graph library. However, all the examples seem quite complicated. I have a database with two main fields, date and value.
Can anyone point me at or provide me with an example of code which will do just that ?
I've used the CorePlot library with success. Here is a really good tutorial on how to use it.
There's example code for line graphs in Apple's Accelerometer sample app.

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

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.
I've created a Core Plot "Hello World" with an x^2 graph here: http://recycled-parts.blogspot.com/2011/08/coreplot-hello-world.html
Hope this helps!
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 grabs Apple's stock price and plots it using an open-high-low-close chart).
These examples are updated as the API changes, so they can be considered reliable sources to work from.