| | |
Trend charts from text files
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Apr 2008
Posts: 45
Reputation:
Solved Threads: 0
•
•
•
•
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...
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...
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...
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...
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.
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.
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.
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.
•
•
Join Date: Apr 2008
Posts: 45
Reputation:
Solved Threads: 0
•
•
•
•
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
•
•
•
•
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
Regards,
![]() |
Other Threads in the Java Forum
- Previous Thread: Swing layout misbehaviour
- Next Thread: Printing a JTextArea
| Thread Tools | Search this Thread |
-xlint actionlistener android api applet application array arrays automation binary blackberry block bluetooth character chat class classes client code compile component consumer database desktop developmenthelp eclipse error event exception fractal freeze ftp game givemetehcodez graphics gui html ide image input integer j2me j2seprojects java javac javaee javaprojects jmf jni jpanel julia lego linked linux list loop loops mac map method methods mobile netbeans newbie notdisplaying number online page print printf problem program programming project properties recursion researchinmotion rotatetext rsa scanner screen server set singleton size sms sort sql string swing template textfields threads time title tree tutorial-sample update windows working






