Exemplo n.º 1
0
 public static void demo2() {
   ResultSet set = new ResultSet();
   for (int c = 1; c <= 10; c++) {
     for (int s = 1; s <= 3; s++) {
       int idx = set.addResult();
       set.setResultValue(idx, "Category", "C" + c);
       set.setResultValue(idx, "Series", "Series" + s);
       set.setResultValue(idx, "Value", new Random().nextDouble());
     }
   }
   ResultSetLinePlot plot =
       new ResultSetLinePlot(set, new String[] {"Value"}, "Series", "Category");
   SwingUtil.showInFrame(plot.getChartPanel());
   System.exit(0);
 }