code: public static PlotCanvas plot(String id, double[] data) {
          double[] lowerBound = {0, Math.min(data)};
          double[] upperBound = {data.length, Math.max(data)};
          PlotCanvas canvas = new PlotCanvas(lowerBound, upperBound);
  
          BarPlot plot = new BarPlot(data);
          plot.setID(id);
          canvas.add(plot);
  
          canvas.getAxis(0).setGridVisible(false);
          canvas.getAxis(0).setLabelVisible(false);
  
          return canvas;
      }
docs: Create a plot canvas with the bar plot of given data.
  @param id the id of the plot.
  @param data a vector of which values will determine the heights of bars.