0
0
Google Sheetsspreadsheet~10 mins

Chart customization (title, legend, colors) 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 set the chart title to "Sales Report".

Google Sheets
chart.setOption('title', [1]);
Drag options to blanks, or click blank then click option'
Atitle
BSales Report
C'Sales Report'
D"Sales Report"
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting to put quotes around the title text
Using a variable name instead of a string
2fill in blank
medium

Complete the code to show the chart legend at the bottom.

Google Sheets
chart.setOption('legend', { position: [1] });
Drag options to blanks, or click blank then click option'
A"bottom"
B"top"
C"left"
D"right"
Attempts:
3 left
💡 Hint
Common Mistakes
Using position without quotes
Choosing the wrong position value
3fill in blank
hard

Fix the error in the code to set the first series color to red.

Google Sheets
chart.setOption('colors', [[1]]);
Drag options to blanks, or click blank then click option'
Ared
B'red'
C"red"
DcolorRed
Attempts:
3 left
💡 Hint
Common Mistakes
Using color names without quotes
Using undefined variables for colors
4fill in blank
hard

Fill both blanks to set the chart title to "Monthly Sales" and place the legend on the right.

Google Sheets
chart.setOption('title', [1]);
chart.setOption('legend', { position: [2] });
Drag options to blanks, or click blank then click option'
A"Monthly Sales"
B"bottom"
C"right"
D"Monthly"
Attempts:
3 left
💡 Hint
Common Mistakes
Using partial title text
Wrong legend position value
5fill in blank
hard

Fill all three blanks to set the chart title to "Annual Revenue", legend at the top, and colors to blue and green.

Google Sheets
chart.setOption('title', [1]);
chart.setOption('legend', { position: [2] });
chart.setOption('colors', [[3]]);
Drag options to blanks, or click blank then click option'
A"Annual Revenue"
B"top"
C"blue", "green"
D"bottom"
Attempts:
3 left
💡 Hint
Common Mistakes
Not quoting strings
Putting colors as a single string instead of separate quoted strings