code: public OHLCSeries updateOHLCSeries(
        String seriesName,
        List<?> newXData,
        List<? extends Number> newOpenData,
        List<? extends Number> newHighData,
        List<? extends Number> newLowData,
        List<? extends Number> newCloseData) {
  
      DataType dataType = getDataType(newXData);
      switch (dataType) {
        case Date:
          return updateOHLCSeries(
              seriesName,
              Utils.getDoubleArrayFromDateList(newXData),
              Utils.getDoubleArrayFromNumberList(newOpenData),
              Utils.getDoubleArrayFromNumberList(newHighData),
              Utils.getDoubleArrayFromNumberList(newLowData),
              Utils.getDoubleArrayFromNumberList(newCloseData));
  
        default:
          return updateOHLCSeries(
              seriesName,
              Utils.getDoubleArrayFromNumberList(newXData),
              Utils.getDoubleArrayFromNumberList(newOpenData),
              Utils.getDoubleArrayFromNumberList(newHighData),
              Utils.getDoubleArrayFromNumberList(newLowData),
              Utils.getDoubleArrayFromNumberList(newCloseData));
      }
    }
docs: Update a series by updating the X-Axis and Y-Axis
  
  @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 newOpenData
  @param newHighData
  @param newLowData
  @param newCloseData
  @return