ExcelScript.ChartSeriesBy enum

Especifica se a série é por linhas ou por colunas. No Excel na área de trabalho, a opção "auto" inspecionará a forma de dados de origem para adivinhar automaticamente se os dados são por linhas ou colunas. Em Excel na Web, "auto" simplesmente será padrão para "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 na área de trabalho, a opção "auto" inspecionará a forma de dados de origem para adivinhar automaticamente se os dados são por linhas ou colunas. Em Excel na Web, "auto" simplesmente será padrão para "colunas".

columns
rows