ExcelScript.ChartSeriesBy enum
Especifica se a série é por linhas ou por colunas. No Excel no ambiente de trabalho, a opção "automático" inspecionará a forma de dados de origem para adivinhar automaticamente se os dados são por linhas ou colunas. No Excel na Web, "auto" irá simplesmente predefinir "colunas".
Comentários
Exemplos
/**
* This script creates a clustered-column chart using an existing table.
*/
function main(workbook: ExcelScript.Workbook) {
// Get the first table on the current worksheet.
const sheet = workbook.getActiveWorksheet();
const table = sheet.getTables()[0];
// Add a clustered-column chart that clusters the data based on the columns in the table.
const chart = sheet.addChart(
ExcelScript.ChartType.columnClustered,
table.getRange(),
ExcelScript.ChartSeriesBy.columns
);
}
Campos
| auto | No Excel no ambiente de trabalho, a opção "automático" inspecionará a forma de dados de origem para adivinhar automaticamente se os dados são por linhas ou colunas. No Excel na Web, "auto" irá simplesmente predefinir "colunas". |
| columns | |
| rows |