I need to display the charts for stocks trading in bse and nse. After a lot of searching i realised that there is no api that provides the graphs of companies(or am i mistaken here. If you guys know of any service that provide charts please let me know). THe only way out was to query yahoo finance for historic data and create the chart using jfreechart myself using that data. Firstly i would like to know how to query yahoo for historic data related to a particular stock symbol. Secondly is there any good tutorial on how to create Jfreecharts(it must be a line chart) using the data from yahoo.
This link code will help u out from fetching data from yahoo.
or u can do it using The ichart service is designed to be very simple to use, you can test it by just hitting with your browser on: http://ichart.finance.yahoo.com/table.csv?s=YHOO&a=06&b=9&c=1996&d=06&e=20&f=2010&g=d