public void notifyDataUpdate(){
  ArrayList<float[][]> oldCoords=new ArrayList<float[][]>(data.size());
  ArrayList<float[][]> newCoords=new ArrayList<float[][]>(data.size());
  for (  ChartSet set : data)   oldCoords.add(set.getScreenPoints());
  digestData();
  for (  ChartSet set : data)   newCoords.add(set.getScreenPoints());
  mRegions=defineRegions(data);
  if (mAnim != null)   data=mAnim.prepareAnimation(this,oldCoords,newCoords);
  mToUpdateValues.clear();
  invalidate();
}

public void notifyDataUpdate ( ) { ArrayList < float [ ] [ ] > oldCoords = new ArrayList < float [ ] [ ] > ( data . size ( ) ) ; ArrayList < float [ ] [ ] > newCoords = new ArrayList < float [ ] [ ] > ( data . size ( ) ) ; for ( ChartSet set : data ) oldCoords . add ( set . getScreenPoints ( ) ) ; digestData ( ) ; for ( ChartSet set : data ) newCoords . add ( set . getScreenPoints ( ) ) ; mRegions = defineRegions ( data ) ; if ( mAnim != null ) data = mAnim . prepareAnimation ( this , oldCoords , newCoords ) ; mToUpdateValues . clear ( ) ; invalidate ( ) ; }
notify chartview about updated values . chartview will be validated .
