Complete the code to create a basic line chart using Excel formula syntax.
Chart.AddChart2([1])The xlLine option creates a line chart, which is a common basic chart type for showing trends.
Complete the code to add data labels to the chart.
Chart.SeriesCollection(1).[1].ShowValue = True
Data labels show the exact values on the chart, making the story clearer.
Fix the error in the code to set the chart title text.
Chart.[1].Text = "Sales Over Time"
The Title property sets the chart's main heading, which helps tell the story clearly.
Fill both blanks to add a secondary axis and set its title.
Chart.SeriesCollection(1).[1] = [2] Chart.Axes(xlValue, [2]).HasTitle = True
Setting AxisGroup to xlSecondary moves the series to the secondary axis. Then we enable the title for that axis.
Fill all three blanks to create a dictionary of average sales by region with condition.
avg_sales = { [1] for region, sales in sales_data.items() if sum(sales) [2] 1000 and region != [3] }This dictionary comprehension calculates average sales for regions with sales over 1000, excluding the East region.