updating top, left margins for the line chart