code: void replaceData(
        double[] newXData,
        double[] newOpenData,
        double[] newHighData,
        double[] newLowData,
        double[] newCloseData) {
  
      // Sanity check should already by done
      this.xData = newXData;
      this.openData = newOpenData;
      this.highData = newHighData;
      this.lowData = newLowData;
      this.closeData = newCloseData;
      calculateMinMax();
    }
docs: This is an internal method which shouldn't be called from client code. Use {@link
  org.knowm.xchart.OHLCChart#updateOHLCSeries} instead!
  
  @param newXData
  @param newOpenData
  @param newHighData
  @param newLowData
  @param newCloseData