Added bottomMargin and sidemargin to graph

Added bottomMargin and sidemargin to graph