943,860 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 1179
  • Java RSS
You are currently viewing page 1 of this multi-page discussion thread
Nov 12th, 2008
0

Trend charts from text files

Expand Post »
Quote ...
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...
Reputation Points: 7
Solved Threads: 0
Light Poster
jorgeflorencio is offline Offline
45 posts
since Apr 2008
Nov 12th, 2008
0

Re: Trend charts from text files

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...
Reputation Points: 85
Solved Threads: 64
Practically a Master Poster
sillyboy is offline Offline
686 posts
since Mar 2007
Nov 12th, 2008
0

Re: Trend charts from text files

Please...
Reputation Points: 7
Solved Threads: 0
Light Poster
jorgeflorencio is offline Offline
45 posts
since Apr 2008
Nov 12th, 2008
0

Re: Trend charts from text files

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...
Reputation Points: 85
Solved Threads: 64
Practically a Master Poster
sillyboy is offline Offline
686 posts
since Mar 2007
Nov 12th, 2008
0

Re: Trend charts from text files

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...
Reputation Points: 37
Solved Threads: 5
Light Poster
brianlevine is offline Offline
36 posts
since Oct 2008
Nov 12th, 2008
0

Re: Trend charts from text files

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.
Moderator
Featured Poster
Reputation Points: 3239
Solved Threads: 839
Posting Genius
Ezzaral is offline Offline
6,761 posts
since May 2007
Nov 13th, 2008
-1

Re: Trend charts from text files

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,
Reputation Points: 7
Solved Threads: 0
Light Poster
jorgeflorencio is offline Offline
45 posts
since Apr 2008
Nov 13th, 2008
0

Re: Trend charts from text files

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.
Reputation Points: 85
Solved Threads: 64
Practically a Master Poster
sillyboy is offline Offline
686 posts
since Mar 2007
Nov 13th, 2008
0

Re: Trend charts from text files

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.
Reputation Points: 935
Solved Threads: 356
Nearly a Posting Maven
stultuske is offline Offline
2,497 posts
since Jan 2007
Nov 13th, 2008
0

Re: Trend charts from text files

Quote ...
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

Quote ...
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

Quote ...
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,
Reputation Points: 7
Solved Threads: 0
Light Poster
jorgeflorencio is offline Offline
45 posts
since Apr 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Swing layout misbehaviour
Next Thread in Java Forum Timeline: Resources for hashing?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC