Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I implement a stock volume chart using core plot on iPhone?

I'm writing a stock charting application on iPhone using core-plot. What kind of chart should I use to plot the volume chart? Since I will also need to overlay the price charts onto the volume chart, how should I go about doing this?

Here's an image for reference (By no means am I trying to reimplement stockcharts functionality, just wanted to create a simple charts with volume information overlaid on the price charts):

example http://www.imagechicken.com/uploads/1264166887000577000.png

Thanks!

like image 853
futureelite7 Avatar asked Jan 22 '10 12:01

futureelite7


2 Answers

What about using a Javascript charting library inside a WebView for your charts? You could then use something like Emprise: http://www.ejschart.com/

like image 164
Jackson Miller Avatar answered Oct 16 '22 04:10

Jackson Miller


If you look at the latest builds of the framework, Drew just added an open-high-low-close plot type, which is a CPTradingRangePlot with a CPTradingRangePlotStyleOHLC plot style. For an example of this in action, along with a bar chart tracking trading volume, see the latest version of the AAPLot example application that ships with the framework: alt text
(source: sunsetlakesoftware.com)

like image 43
Brad Larson Avatar answered Oct 16 '22 03:10

Brad Larson