fix bug in line chart resizing