aspose file tools*
The moose likes Other Open Source Projects and the fly likes Drawing Dynamic Graph Using Java/J2EE Technology Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Drawing Dynamic Graph Using Java/J2EE Technology" Watch "Drawing Dynamic Graph Using Java/J2EE Technology" New topic
Author

Drawing Dynamic Graph Using Java/J2EE Technology

Devipriya Swaminathan
Greenhorn

Joined: Apr 28, 2006
Posts: 15
Dear Friends,
I have a immediate requirement.
I have to draw a dynamic graph based on changing statistical data(Stock market appliaction).Have a look at finance.yahoo.com.There we can a find a dynamic graph.The x and y axis in the graph will change according to the data it recieves without using refresh option and all ... In a periodic interval of time ,say for every 10 minutes the application have to check whether it has any changes in the statistical data it recieves (the data maybe from database or form anyother application). If it finds any changes ,automatically it should reflect those changes in the graph.
Please help me out friends . I have been struggling with this over a period of time but am not able to resolve.
Please provide me with any sample application and code.
Keeping my fingers crossed.
Thanks in Advance.


Devipriya.s
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
What have you tried so far?


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Devipriya Swaminathan
Greenhorn

Joined: Apr 28, 2006
Posts: 15
I haven't start with any coding sir.
I have been go throughing 'SVG'(Scalar Vector Graphics) ,and i haven't been brought to a conclusion whether we can draw dynamic graph using this .
Actually my statistical data will be in a Excel Sheet. I have read those values from Excel sheet , and put it in some Java or Jsp file. continously i should develop a tabular format and a graph for the values.
Any help please.
Thanks in advance.
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Take a look at http://java-source.net/open-source/charting-and-reporting
rinki goyal
Greenhorn

Joined: Aug 18, 2006
Posts: 7
Hello,
I ahve an urgent requirenment to develop stock portlet as on yahoo website.
I am able to find all data .
Please tell me how to get the for different time intervals from yahoo.

Thanks & regards
Rinki
Sachin Joshi
Ranch Hand

Joined: Aug 06, 2008
Posts: 83

Not sure if I understand your question....What are you looking for?

Is it a standalone app or webapp? where are you getting the data from?


Web Development Tips and Tutorials - By Sachin
Ananth Chellathurai
Ranch Hand

Joined: Nov 21, 2007
Posts: 349

Hi Devipriya,

JFreeChart will suite the best for your requirements. What API have you planned to read from excel? I believe http://poi.apache.org/ is the best open source API to read from excels.

How simple will be your data in csv? If it is simple you can tokenize the commas directly without using any APIs.

Ananth Chellathurai


Ananth Chellathurai [Walk on software]
Bill Zelan
Ranch Hand

Joined: Jan 09, 2009
Posts: 46
Devipriya Swaminathan wrote: ... 'SVG'(Scalar Vector Graphics) ...


It's "Scalable Vector Graphics", not "Scalar Vector Graphics"
venkat eswar
Greenhorn

Joined: Sep 25, 2012
Posts: 2
I have a immediate requirement to draw the running graph and data will be getting from the another application ( pressure/ temperature of the internal combustion of pipe lines). The graph will be continously changing based on the pressure/temperature values getting from the another application and it wil have the function to zoom on the selected portion of the graph.

****** I SHOULD NOT USE ANY OPEN API LIKE JFREECHART OR ANY OTHER API'S *********

please help me how to do this using Graphics2D,AWT and Swings

attcahedmodel graph for referance ......


[Thumbnail for ex_graph.jpg]

atul khot
Ranch Hand

Joined: Jul 24, 2008
Posts: 50
Hi,
Have you considered using graphviz? They have on HTML drawing capabilities too - The graphs it draws are very nice...

--- cheerio atul


--cheerio atul
venkat eswar
Greenhorn

Joined: Sep 25, 2012
Posts: 2
HI atul..
I am new to Graphic2D,AWT and Swings and this new development project. should start with fresh new code. dont know how to divide the packages and graphviz concept.
i have attached the model graph for the referance. The values for the above graph wil be received from another application and that will be continously changed so it looks like running graph.
can you please elabrote graphviz. wil it use any other open APIs
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Drawing Dynamic Graph Using Java/J2EE Technology