• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

how i do get network graph ?

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
 
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 781
Netbeans IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Netbeans IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Run away! Run away! Here, take this tiny ad with you:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic