Adding date/time to JFreeChart graph
问题 I currently have a method which queries a database for values, and plots them to a graph. The only problem is, the time variable is a long, and results in my graph looking like this: I want to convert it to a date format and then add it to the graph. How can I do this? Here is my graph code: private Long time; private Long intensity; public XYSeries series = new XYSeries("Sensor"); private XYDataset xyDataset; public JFreeChart chart; xyDataset = new XYSeriesCollection(series); chart =