adjust chart width and height