new BarChart(desc, s , "#", categories); chart.addSeries("Bin size", this.bins); chart.saveAsPng(path + desc + ".png", 1600, 800);
categories[i++] = distanceBin.low + "\n" + " .. " + "\n" + distanceBin.high; BarChart chart = new BarChart(title, xAxisLabel, yAxisLabel, categories);
public void createBarChart(final String filename) { BarChart chart = new BarChart(TITLE, X_AXIS, Y_AXIS, new String[] {"A", "B", "C"}); chart.addSeries(SERIE_1, new double[] {1.0, 5.0, 2.0, 3.0, 4.5}); chart.addSeries(SERIE_2, new double[] {2.0, 3.0, 3.0, 1.5, 4.5}); chart.addMatsimLogo(); chart.saveAsPng(filename, 800, 600); }