chart resizing and displaying data