Using Apps Script for Google Sheets

How to create a blank row at row 1 for charts and freeze the following 2 rows ?
meaning

Row 1: blank row for dynamic chart
Row 2: usual headers
Row 3: input from form