Using Appscript for google sheet

How to create a blank row at row 1 for charts and freeze the following 3 rows ?
meaning
Row 1: blank row for dynamic chart
Row 2: usual headers
Row 3: input from form

Thanks!