resized chart to fit in layout correctly.