code: public CategorySeries updateCategorySeries(
        String seriesName, double[] newXData, double[] newYData, double[] newErrorBarData) {
  
      return updateCategorySeries(
          seriesName,
          Utils.getNumberListFromDoubleArray(newXData),
          Utils.getNumberListFromDoubleArray(newYData),
          Utils.getNumberListFromDoubleArray(newErrorBarData));
    }
docs: Update a series by updating the X-Axis, Y-Axis and error bar data
  
  @param seriesName
  @param newXData - set null to be automatically generated as a list of increasing Integers
  starting from 1 and ending at the size of the new Y-Axis data list.
  @param newYData
  @param newErrorBarData - set null if there are no error bars
  @return