• Post Reply Bookmark Topic Watch Topic
  • New Topic

Generating/Creating dynamic graphs

 
Vikrama Sanjeeva
Ranch Hand
Posts: 760
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
This task is very new for me. Ok, here is what I have to do:

1) The user will input a square matrix in a text file.
2) Java program (in fact servlet) will read this text file and will validate whether the input matrix is square or not? If yes then continue; else error screen.
3) After successfull validation, it will create a graph based on the values of matrix.
4) The created (generated) graph (image) will be displayed as an output to the user on his browser.

The business logic here is the method of creating graph based on matrix values. This method I know well on paper-pencil. But implementing the same in Java code and generating the graph is bit new. The later part, i.e. generating the graph is in fact the actual task.

I've developed an explained example with matrix (input) and the generated graph (output) here.

In the graph, you will see objects are linked with each other via arrows. This linking is decided on the matrix values. Most probably, I will be having images of objets saved in my haardisk. Only Linking them @ runtime have to be done.

Looking forward for the guideline to start implementing the task.

Thanks,

Bye,
Viki.
[ March 14, 2006: Message edited by: Bear Bibeault ]
 
Zeena Shef
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Viki have u find any help on it?

It seems Ranchers do not have any experience of it either...

I m too Waiting for a response... :roll:
 
ak pillai
author
Ranch Hand
Posts: 288
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to use the Image/Jimiwriter classes. The following article will help you:

http://www.javaworld.com/javaworld/jw-05-2000/jw-0505-servlets-p2.html


To draw charts there free frameworks and commercial frameworks available on the market to simplify the above task.
[ March 15, 2006: Message edited by: ak pillai ]
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JFreeChart
 
Eddy Lee Sin Ti
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shopping for a Chart? Browse this catalogue

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!