Re-sized the form and adding code to the chart control.