I have faced with a problem of putting date on my JFreeChart graph. I read the double value and date value from my local MySql database but I cannot put date onto the graph.
Here is my useless tryings
    XYSeries series = new XYSeries("Dynamic");
    for (int i = 0; i < ch.size(); i++) {
        series.add(ch.get(i) * * *.get_date() * * *
        ,ch.get(i).get_pro());
    }
    XYDataset xyDataset = new XYSeriesCollection(series);
    JFreeChart chart = ChartFactory.createXYLineChart("Title", "Date", "Buy",
            xyDataset,
            PlotOrientation.VERTICAL,
            true, true, true);
    JFrame add = new DynamicCurrency(ch);
    add.getContentPane().add(new ChartPanel(chart));
    add.setVisible(true);
I bold the place where the mistake occurs. Thanks a lot