0

I have a GUI with a button and check boxes, when button clicked it calls a method that gets an amount "10000+" numbers from a CSV file and bubblesorts them, it also checks the comparisons too. My question is how can I create a graph to show my results, not in excel looking to do on the JFrame or open a new JFrame when sort has completed. Not sure how to go about it, are there any plugins for eclipse or libraries I can use. Can you provide me with tutorials or links to some useful sites that might help. thanks in advance

Paul Samsotha
  • 205,037
  • 37
  • 486
  • 720
Gman
  • 2,433
  • 3
  • 26
  • 36
  • 1
    You could take a look at [JFreeCharts](http://www.jfree.org/jfreechart/) – MadProgrammer Mar 26 '14 at 23:12
  • It's not clear what the "results" are, and how they should be shown. Do you want a bar chart showing the sorted numbers? This will be difficult for more than 1000 numbers. Or do you somehow want to visualize the number of comparisons? – Marco13 Mar 26 '14 at 23:18
  • will do now MadProgrammer thanks – Gman Mar 26 '14 at 23:19
  • For [example](http://stackoverflow.com/a/13205322/230513). – trashgod Mar 26 '14 at 23:23
  • @Marco what happens is I actually have a CSV file with 1 million random numbers I read them into an arraylist and then select an amount to sort record the time and comparison made, the use can enter the start range, increments and end. Eg: Start with 1000 record, increment by 500, and end at 10,000 or so recording how long each increment took. Hope you can understand what I mean. – Gman Mar 26 '14 at 23:24
  • @trashgod ye that looks like what I need. – Gman Mar 26 '14 at 23:27

0 Answers0