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 ?

-------------Problems Reply------------

There's example code for line graphs in Apple's Accelerometer sample app.

I've used the CorePlot library with success. Here is a really good tutorial on how to use it.

Category:iphone Views:0 Time:2010-10-06
Tags: iphone

Related post

  • Drawing a simple line graph in Java 2012-01-01

    In my program I want to draw a simple score line graph. I have a text file and on each line is an integer score, which I read in and want to pass as argument to my graph class. I'm having some trouble implementing the graph class and all the examples

  • Draw a simple line graph in Swing 2012-01-31

    How can i draw a line graph in Java Swing. I'm making a program in which when user clicks on a jframe it will record its coordinate and when it click on a button named Draw Graph, it generates a line graph using the points. So, How can i draw a line

  • How to draw a simple line dynamic graph on iPhone 2010-11-19

    How do I draw a simple line dynamic graph on the iPhone? The x-axis should show the profit by default and the y-axis should show the loss value. I'm trying the plot, but I am unsuccessful. Do you have any ideas or examples? Please help me. Thanks. --

  • How to draw a simple line without using Interface Builder in iphone sdk? 2011-03-29

    I want to draw a simple line in view controller with out using Interface builder. --------------Solutions------------- Try this question. I know this references InterfaceBuilder, but you can dynamically add your custom view using Obj-C like mentioned

  • How to draw a simple line without using Interface Builder? 2011-03-31

    I'm a beginner. I just want to draw a simple line without using IB . code I used is lineViewController.m -(id)init { if(self = [super init]) { myView = [[UIView alloc]initWithFrame:CGRectMake(0,0,320,440)]; myView.backgroundColor = [UIColor grayColor

  • Drawing a simple line or arrow 2013-05-20

    I am trying Visio out and this may sound a bit dumb - but why isn't there a way to draw a simple line or arrow to connect things? I want to do process flows for mechanical equipment and thought I should be able to place the pots, pumps etc. and conne

  • Best way to draw a simple line with Windows Phone 7 XNA 2011-03-14

    I'm REALLY new to programming on Windows Phone 7. How would I draw a line from point (x1,y1) to point (x2,y2). I'm using the XNA Game Studio, and can do a lot in there, but need to be able to draw some simple shapes with lines like I would on a basic

  • Best way to go about making "simple" line graphs with a very light footprint? jquery? canvas? 2012-04-03

    I'm trying to create line graphs like the one in the image below. It needs to have a very light weight(in kb), and needs to have points that I could hover(for a tooltip about that point, like in the image). I don't need pie charts or anything like th

  • Is there an XML schema for drawing histogram and line graphs - with XSLTs already available? 2012-01-16

    I'm trying to generate SVG-based histograms / line-graphs from data I have in another format. Before I try and re-invent an inferior wheel - is there already a well-used simple-to-use , fit-for-purpose XML format with XSLTs that can do the graphing p

  • How to draw axis and line graph using paintComponent in JPanel 2012-03-09

    i need to create a line graph inside a JPanel using paintComponent. I don't want to use external package. I have to draw different line graph ( in the same panel ) and user selects the number of graph to draw. The data for every graph are number from

  • Javascript: How to draw a simple line on canvas (in 3d) and make it rotatable (in 3d)? 2010-12-30

    So I want to draw a line on canvas (in 3d) and make it rotatable (in 3d) on mouse dragging that line (dragging some of its points) (better with out use of anything like a specialized lib - pure no libs JS...)? --------------Solutions------------- A g

  • Open GL - ES 2.0 : Drawing a simple line 2012-02-09

    I have spent quite some time and effort trying to figure out how to draw a line in opneGL es on the iPhone. Here is my code myMagicVertices[0] = -0.5; myMagicVertices[1] = -0.5; myMagicVertices[2] = 2.0; myMagicVertices[3] = 2.0; glDrawElements(GL_LI

  • trying to draw some simple lines in android 2011-01-20

    i am trying to draw some lines via code on top of a background image to make a sort of graph-like thing, but i can't seem to find a method to do this, can anyone help? *edit here is what i have so far, but i get a force close on the line Canvas canva

  • android: how to draw a simple line and display it in a widget? 2012-02-15

    i want to visualize stuff with a widget by drawing some lines. lets just say i get two coordinates (x,y) every n seconds and then want to update the widget accordingly. this works just fine by now, but now i want to actually DRAW a line between those

  • Draw multiple vertical lines graph with OpenGL-ES on Android to realize a Spectrum real-time analyzer 2013-07-11

    I'm new on android developing, I worked with basical opengl approaches, like particles engine or simple rotating spheres scenario on Ububntu. I'd like to realize a spectrum analyzer which getting audio signals from phone microphone, STFT processing t

  • Matplotlib: Drawing a multple line graph in a single plot (discrete plot) 2011-08-09

    I would like to know if there is a natural way to draw a graph that consists in a group of lines of varying length like this: 5 | x--------x 4 | x-----x x--x 3 | 2 | x----x 1 | x-----x 0 |_______________________________ ' ' ' ' ' 10 20 30 40 50 Is th

  • Trying to draw a 3D line graph in openGL 2012-03-03

    I have a 2D sine curve on the x and y axes, and I want to make it 3D. I'm wanting the end result to look something like . I think I do this by rotating the curve's vertices around the y-axis and joining them all together somehow. Does anyone have any

  • how to draw a single line graph 2012-06-03

    i want to draw a single graph that contains x and y coordinates,but i dont know how and its not there on the charts,nothing allows me to insert my coordinates --------------Solutions------------- Please see:- http://www.pierrefondes.com/ - item 120 f

  • Java/Swing: How to draw a simple bar graph in a custom renderer for a JLabel 2008-10-09

    I would like to dynamically create a minimal transparent bar graph to display over a canvas. I was thinking of using a custom renderer for a JButton or a JLabel; but how do I draw my bar graph in this renderer? --------------Solutions------------- Th

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.114 (s). 11 q(s)