Complete the code to create a chart from data in cells A1 to B5.
InsertChart(range=[1])The range A1:B5 correctly selects the data for the chart.
Complete the formula to calculate the total sales in column B.
=SUM([1])The formula sums the sales values in column B from rows 2 to 6, excluding the header.
Fix the error in the formula to calculate average sales in column B.
=AVERAGE([1])The correct range B2:B6 excludes the header and includes the sales data.
Fill both blanks to create a bar chart with title 'Sales Data'.
Chart.new().setChartType([1]).setOption('title', [2]).build()
The chart type should be 'BAR' and the title set to 'Sales Data'.
Fill all three blanks to create a pie chart from range A1:B5 with legend on the right.
Chart.new().setChartType([1]).addRange([2]).setOption('legend', { position: [3] }).build()
The chart type is 'PIE', data range is 'A1:B5', and legend position is 'right'.
