rendering graph after width and height and increment changed