Trend charts from text files

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Apr 2008
Posts: 45
Reputation: jorgeflorencio is an unknown quantity at this point 
Solved Threads: 0
jorgeflorencio jorgeflorencio is offline Offline
Light Poster

Trend charts from text files

 
0
  #1
Nov 12th, 2008
Can anyone help me what would be the best way to transform a text file data into a trendchart... using a Jpanel!

The data file would have the type of errors and the quantity that each error has appeared...
Then in the Jpanel would get the trend chart composed by the type of errors and the bar with the qty..

Thank you in advance...
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 686
Reputation: sillyboy is on a distinguished road 
Solved Threads: 61
sillyboy's Avatar
sillyboy sillyboy is offline Offline
Practically a Master Poster

Re: Trend charts from text files

 
0
  #2
Nov 12th, 2008
That is a fairly open-ended question. I think you first want to have a design for the chart. The design is going to be the hardest part of this problem, and I don't know how to advise you without some requirements...
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 45
Reputation: jorgeflorencio is an unknown quantity at this point 
Solved Threads: 0
jorgeflorencio jorgeflorencio is offline Offline
Light Poster

Re: Trend charts from text files

 
0
  #3
Nov 12th, 2008
Please...
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 686
Reputation: sillyboy is on a distinguished road 
Solved Threads: 61
sillyboy's Avatar
sillyboy sillyboy is offline Offline
Practically a Master Poster

Re: Trend charts from text files

 
0
  #4
Nov 12th, 2008
Please what?

Show me what you are trying to achieve and maybe I can help.

As I said, design your chart to begin with (that is the hardest part). Once that is done, you will need to know some file I/O, maths functions, the swing package.

BUT, first you need to know what you are trying to do...
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 34
Reputation: brianlevine is an unknown quantity at this point 
Solved Threads: 5
brianlevine brianlevine is offline Offline
Light Poster

Re: Trend charts from text files

 
0
  #5
Nov 12th, 2008
There's got to be some good libraries/tools out there that do the charting part of this. Then all you'd need to do is parse the text file and pull out the information you want to chart, and feed it to the APIs. I haven't worked with any myself, but I've seen them around from time to time...
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4,483
Reputation: Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of 
Solved Threads: 515
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is online now Online
Industrious Poster

Re: Trend charts from text files

 
0
  #6
Nov 12th, 2008
JFreeChart has some charts such as that, but as already mentioned, you have to understand what you're charting to make much use of them.
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 45
Reputation: jorgeflorencio is an unknown quantity at this point 
Solved Threads: 0
jorgeflorencio jorgeflorencio is offline Offline
Light Poster

Re: Trend charts from text files

 
-1
  #7
Nov 13th, 2008
Hi there.. you are right when you ask what i want!

the kind of result that i want is what i'm going to send you by e-mail... its a simple thing.... and the data is available in a text file... that i'm accessing and selecting the data that i want...

thanks in advance

regards,
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 686
Reputation: sillyboy is on a distinguished road 
Solved Threads: 61
sillyboy's Avatar
sillyboy sillyboy is offline Offline
Practically a Master Poster

Re: Trend charts from text files

 
0
  #8
Nov 13th, 2008
Ok, so I got your sample input file, and a general overview of your graphs (bar & pie). The other guys have provided you with a api you could look at, which will make your life easier.

You are still seemingly providing us with the whole problem and not with specific areas you are struggling with, and I am sorry, but I'm not going to write your app for you.

Look at the api, see if you can get data from the file and present it in a way the api can use.
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 706
Reputation: stultuske is a jewel in the rough stultuske is a jewel in the rough stultuske is a jewel in the rough 
Solved Threads: 84
stultuske's Avatar
stultuske stultuske is offline Offline
Master Poster

Re: Trend charts from text files

 
0
  #9
Nov 13th, 2008
Originally Posted by jorgeflorencio View Post
Thank you in advance...
what exactly are you thanking us for... because you got the option to quote someone?
well, you did that all on your own, I guess, well done.

if you want several people to be able to help you, mailing your stuff to one person won't really help, now will it?

post whatever you have on the forum here, make sure we can see where one class end, and where another begins (using Code tags would be a good start) and don't just provide us with a task.

unlike you, we won't get bad grades or in trouble at work if this project doesn't get up and running soon.
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 45
Reputation: jorgeflorencio is an unknown quantity at this point 
Solved Threads: 0
jorgeflorencio jorgeflorencio is offline Offline
Light Poster

Re: Trend charts from text files

 
0
  #10
Nov 13th, 2008
Well i'm sorry for being polite....

And i don't have a time schedule to follow... that is an idea that i want to implement...
The reality is that i have diferent equipments and every one of it provides an error log!
My application is collecting that error log and decript it
scanning it in order to calculate how many errors do we have regarding each single class of error!

creating a output file with the sum of each equipment
This way the file has the following layout

Errors qty
spcmsg 23
dbgfid 40
dbgini 10
Ekra1 73

Errors qty
spcmsg 60
dbgfid 70
dbgini 25
Ekra2 155

So my idea would be create Trend charts - Bar for every single equipment where i could have what were the top5 errors with the quantity...

and at the same time... another Chart - Pie with the Totals of each equipment

EKRA1 - 73
EKRA2 - 155
Yesterday i was almost sleeping i'm sorry about anything or if i ofend you! i'm just a newby..

Regards,
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC