Complete the code to create a chart that updates when the data changes.
Insert a chart by selecting the data range and then clicking on [1].
To create a chart in Google Sheets, you use the Insert menu and select Chart.
Complete the code to link the chart to the data range A1:B5.
Select the chart, then in the Chart editor, set the Data range to [1].
The data range must match the cells containing your data. Here, it's A1:B5.
Fix the error in the formula that dynamically updates the chart range when rows are added.
Use the formula =[1](A1:B) to select all rows in columns A and B.
ARRAYFORMULA allows the formula to cover all rows dynamically in the range A1:B.
Fill both blanks to create a dropdown filter that updates the chart based on the selected category.
Create a dropdown in cell D1 using Data > Data validation with criteria [1], then use =FILTER(A2:B10, A2:A10 [2] D1) to filter data.
The dropdown uses a list of items, and the FILTER formula uses '=' to match the selected category.
Fill all three blanks to create a dynamic chart title that shows the selected category from cell D1.
Set the chart title formula to ="Sales for " & [1](D1) & " in " & [2](D2) & "."
UPPER converts the category to uppercase, TEXT formats the date in D2, and CONCATENATE joins the strings.