size and offset of svg graph adjusted