public void zoomToShapeInChartCoords(Shape s,int duration){
  zoomTransition(s.getBounds(),duration);
}

public void zoomToShapeInChartCoords ( Shape s , int duration ) { zoomTransition ( s . getBounds ( ) , duration ) ; }
zooms the view port to show a specified shape . the shape should be expressed in chart coordinates ( not screen coordinates ) .
