code: public XYSeries addSeries(String seriesName, int[] xData, int[] yData, int[] errorBars) {
  
      return addSeries(
          seriesName,
          Utils.getDoubleArrayFromIntArray(xData),
          Utils.getDoubleArrayFromIntArray(yData),
          Utils.getDoubleArrayFromIntArray(errorBars),
          DataType.Number);
    }
docs: Add a series for a X-Y type chart using using int arrays with error bars
  
  @param seriesName
  @param xData the X-Axis data
  @param xData the Y-Axis data
  @param errorBars the error bar data
  @return A Series object that you can set properties on