title: How to create a XY chart in Java which reads data from two variables?
body: <p>I have difficulties understanding how to add my data to the chart object. I am simulating a supermarket activity in java program. After the simulation time is up. I have two variables
   time and customers. What should I use if I want the data to be added to an XY chart in java.</p>
  
  <p>Thanks, in advance. I have looked at JFreeChart but it seems overly complicated.</p>