0
0
Google Sheetsspreadsheet~10 mins

Line charts in Google Sheets - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a line chart from data in cells A1 to B5.

Google Sheets
=SPARKLINE(A1:B5, {"charttype", [1])
Drag options to blanks, or click blank then click option'
A"line"
Bscatter
Cpie
Dbar
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'bar' or 'pie' instead of 'line' for the chart type.
Forgetting to put the chart type inside quotes.
2fill in blank
medium

Complete the code to set the line width to 2 for the line chart.

Google Sheets
=SPARKLINE(A1:B5, {"charttype", "line", "[1]", 2})
Drag options to blanks, or click blank then click option'
Acolor
Blegend
Clinewidth
Daxis
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'color' or 'legend' instead of 'linewidth'.
Not placing the linewidth option inside the options array.
3fill in blank
hard

Fix the error in the formula to correctly set the line color to blue.

Google Sheets
=SPARKLINE(A1:B5, {"charttype", "line", "color", [1])
Drag options to blanks, or click blank then click option'
ABlue
Bblue
C'blue'
D"blue"
Attempts:
3 left
💡 Hint
Common Mistakes
Using color names without quotes.
Using single quotes instead of double quotes.
4fill in blank
hard

Fill both blanks to create a line chart with a red line.

Google Sheets
=SPARKLINE(A1:B5, {"charttype", [1], "color", [2])
Drag options to blanks, or click blank then click option'
A"line"
B"red"
C"blue"
Dbar
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'bar' instead of 'line' for the chart type.
Not putting the color name in quotes.
5fill in blank
hard

Fill all three blanks to create a line chart with green color and line width of 3.

Google Sheets
=SPARKLINE(A1:B5, {"charttype", [1], "color", [2], "linewidth", [3])
Drag options to blanks, or click blank then click option'
A"line"
B"green"
C3
D"blue"
Attempts:
3 left
💡 Hint
Common Mistakes
Using quotes around the line width number.
Using wrong color names or missing quotes.