ExcelScript.ChartSeriesBy enum

Gibt an, ob die Reihen zeilenweise oder spaltenweise sind. In Excel auf dem Desktop überprüft die Option "auto" das Quelldaten-Shape, um automatisch zu erraten, ob die Daten zeilen- oder spaltenweise sind. In Excel im Web wird "auto" einfach standardmäßig auf "Columns" festgelegt.

Hinweise

Beispiele

/**
 * 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
    );   
}

Felder

auto

In Excel auf dem Desktop überprüft die Option "auto" das Quelldaten-Shape, um automatisch zu erraten, ob die Daten zeilen- oder spaltenweise sind. In Excel im Web wird "auto" einfach standardmäßig auf "Columns" festgelegt.

columns
rows