Complete the code to create a combo chart with a line and a column series.
chart = sheet.newChart().setChartType(Charts.ChartType.[1]).addRange(dataRange).build()The combo chart type is COMBO in Google Sheets scripting to combine line and column charts.
Complete the code to set the first series as a column and the second series as a line in the combo chart.
chart = chart.modify().setOption('series', {0: {type: '[1]'}, 1: {type: '[2]'}}).build()
In combo charts, you specify each series type. The first series is column, the second is line.
Fix the error in the code to correctly set the combo chart's vertical axes for each series.
chart = chart.modify().setOption('vAxes', {0: {title: 'Sales'}, 1: {title: 'Profit', [1]: true}}).build()
The correct option to enable logarithmic scale on vertical axes is logScale.
Fill both blanks to set the combo chart's title and legend position.
chart = chart.modify().setOption('title', '[1]').setOption('legend', {position: '[2]'}).build()
The chart title is set to Monthly Sales Report and the legend position to bottom for clarity.
Fill all three blanks to create a combo chart with a column series, a line series, and set the second vertical axis title.
chart = sheet.newChart().setChartType(Charts.ChartType.[1]).addRange(dataRange).setOption('series', {0: {type: '[2]'}, 1: {type: '[3]'}}).setOption('vAxes', {1: {title: 'Profit Margin'}}).build()
The combo chart type is COMBO. The first series is column, the second is line. The second vertical axis is titled 'Profit Margin'.