public void addData(double[] histData,Integer index){
  data.remove(index.intValue());
  data.add(index.intValue(),histData);
  redraw();
}

public void addData ( double [ ] histData , Integer index ) { data . remove ( index . intValue ( ) ) ; data . add ( index . intValue ( ) , histData ) ; redraw ( ) ; }
add double array data to a specified data series . this is the main method used to dynamically add data when the histogram is used as a plot component . called via reflection from histogramcomponent .
