Complete the code to set the chart title to "Sales Report".
chart.setOption('title', [1]);
The chart title must be a string enclosed in double quotes. Option D correctly uses double quotes around the title text.
Complete the code to show the chart legend at the bottom.
chart.setOption('legend', { position: [1] });
The legend position must be set as a string. "bottom" places the legend below the chart.
Fix the error in the code to set the first series color to red.
chart.setOption('colors', [[1]]);
Colors must be strings inside quotes. Option C correctly uses double quotes around "red".
Fill both blanks to set the chart title to "Monthly Sales" and place the legend on the right.
chart.setOption('title', [1]); chart.setOption('legend', { position: [2] });
The title must be a string with quotes, and the legend position must be "right" to place it on the right side.
Fill all three blanks to set the chart title to "Annual Revenue", legend at the top, and colors to blue and green.
chart.setOption('title', [1]); chart.setOption('legend', { position: [2] }); chart.setOption('colors', [[3]]);
The title is "Annual Revenue" in quotes, the legend position is "top", and colors are an array of strings "blue" and "green".