I want to generate graphs using data from MySQL. I have tried the JFreeChart library, but it's not working in my project. I want to know which library can generate graphs better than JFreeChart, but also how to modify my JFreeChart code to work better than it does now. Thanks.
Code:
String query="select Entropy,TimeStamp from entropy where profile='Bandwidth in of all interface' order by walkinggroup";
ConnectDB conn=new ConnectDB("ip","root","124563");
JDBCCategoryDataset dataset=new JDBCCategoryDataset(conn.getConnection(),query);
JFreeChart chart=ChartFactory.createLineChart("entropy", "TimeStamp", "Entropy", dataset, PlotOrientation.VERTICAL, false, true, true);
BarRenderer renderer=null;
CategoryPlot plot=null;
renderer=new BarRenderer();
ChartFrame frame=new ChartFrame("Query chart",chart);
frame.setVisible(true);
frame.setSize(1000, 1000);
/