File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Drawing Dynamic Graph Using Java/J2EE Technology

 
Devipriya Swaminathan
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What have you tried so far?
 
Devipriya Swaminathan
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14112
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at http://java-source.net/open-source/charting-and-reporting
 
rinki goyal
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 83
Java Spring Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Ananth Chellathurai
Ranch Hand
Posts: 349
Eclipse IDE Hibernate Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bill Zelan
Ranch Hand
Posts: 46
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Devipriya Swaminathan wrote: ... 'SVG'(Scalar Vector Graphics) ...


It's "Scalable Vector Graphics", not "Scalar Vector Graphics"
 
venkat eswar
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ......
ex_graph.jpg
[Thumbnail for ex_graph.jpg]
 
atul khot
Ranch Hand
Posts: 64
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Have you considered using graphviz? They have on HTML drawing capabilities too - The graphs it draws are very nice...

--- cheerio atul
 
venkat eswar
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic