Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how i do get network graph ?

 
thanaphum bannasri
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've used jpcap + freechart (api for java) but I can't get graph, how i do later?
(sorry my english's not good)
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are you trying to graph? In other words, what -exactly- do you mean by "network graph"? Also, what do you have so far,. and where are you stuck making progress?
 
thanaphum bannasri
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:What are you trying to graph? In other words, what -exactly- do you mean by "network graph"? Also, what do you have so far,. and where are you stuck making progress?


I would like to know I will draw network graph xy(Line Graph) realtime . How I do it easy?
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What I meant is: what is a "network graph xy (Line Graph) realtime"? What's along the X axis? What's along the Y axis? TellTheDetails.

Also, is this question about gathering data using jpcap, or about using JFreeChart to draw something?
 
James Sabre
Ranch Hand
Posts: 781
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanaphum bannasri wrote:
I would like to know I will draw network graph xy(Line Graph) realtime . How I do it easy?


I suspect you won't like my answer. JFreeChart is difficult to use effectively without the documentation and the examples that come with that documentation but you have to buy the documentation. Using JFreeChart for creating xy line charts is relatively easy but the detail of what you want to achieve matters. How you use this in conjunction with jpcap is a different matter.

P.S. Be careful in this context to distinguish between charts (xy, pie, histograms etc) and graphs (nodes and links).
 
thanaphum bannasri
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:What I meant is: what is a "network graph xy (Line Graph) realtime"? What's along the X axis? What's along the Y axis? TellTheDetails.

Also, is this question about gathering data using jpcap, or about using JFreeChart to draw something?


X axis is Time It change every 5 second. Y axis is Value of bandwidth that used (kbps).help me please....
 
thanaphum bannasri
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
James Sabre wrote:
thanaphum bannasri wrote:
I would like to know I will draw network graph xy(Line Graph) realtime . How I do it easy?


I suspect you won't like my answer. JFreeChart is difficult to use effectively without the documentation and the examples that come with that documentation but you have to buy the documentation. Using JFreeChart for creating xy line charts is relatively easy but the detail of what you want to achieve matters. How you use this in conjunction with jpcap is a different matter.

P.S. Be careful in this context to distinguish between charts (xy, pie, histograms etc) and graphs (nodes and links).


Oh Sorry I don't know . I talk about charts xy . Have you a great solution for me? . Should I use api that easy to apply?
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, so you know how to obtain the data somehow, and this question is solely about how to create a chart from that data?

For data that changes frequently a library like JChart2D may be better suited, but that depends on the environment in which this chart is used - is it displayed on a web page, or in a java desktop app, or someplace else?
 
James Sabre
Ranch Hand
Posts: 781
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanaphum bannasri wrote:
I talk about charts xy .

I gathered that.
Have you a great solution for me? .

If by that you mean am I going to post the code that does exactly what you are going to submit as your homework - no. I will assist in helping you to develop your code but I won't write it for you.

Should I use api that easy to apply?

If you buy the documentation then JFreeChart is fairly easy to use.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic