code: public void updateDataSerieOnScatterPlot(String scatterID, int index, double[][] dataSerie){
          if (this.scatterPlots.containsKey(scatterID)){
              if (this.scatterPlotsData.containsKey(scatterID)) {
                  double[][] current = this.scatterPlotsData.get(scatterID);
                  this.scatterPlotsData.put(scatterID, concatenateArrays(current, dataSerie));
              } else{
                  // Create the data.
                  addDataSerieToScatterPlot(scatterID, dataSerie);
                  return;
              }
              this.scatterPlots.get(scatterID).updateSeries(index, this.scatterPlotsData.get(scatterID));
  //            this.scatterPlots.get(scatterID).addSeries(this.scatterPlotsData.get(scatterID), scatterID, null);
          }
      }
docs: Updates the data in the scatterPlot
  
  @param scatterID
  @param index the data serie to modify
  @param dataSerie the series data