modern-xlsx API Reference - v1.3.0
    Preparing search index...

    Interface ChartSeriesData

    A chart series (c:ser): its data references, name and formatting.

    interface ChartSeriesData {
        bubbleSizeRef?: string | null;
        catRef?: string | null;
        dataLabels?: DataLabelsData | null;
        errorBars?: ErrorBarsData | null;
        explosion?: number | null;
        fillColor?: string | null;
        idx: number;
        lineColor?: string | null;
        lineWidth?: number | null;
        marker?: MarkerStyleType | null;
        name?: string | null;
        nameLiteral?: string | null;
        order: number;
        smooth?: boolean | null;
        trendline?: TrendlineData | null;
        valRef: string;
        xValRef?: string | null;
    }
    Index
    bubbleSizeRef?: string | null
    catRef?: string | null
    dataLabels?: DataLabelsData | null
    errorBars?: ErrorBarsData | null
    explosion?: number | null

    c:explosion, written for pie and doughnut charts only; other types drop it.

    fillColor?: string | null

    Fill colour as six hex digits RRGGBB without #, written verbatim as a:srgbClr val.

    idx: number

    c:idx, written and read as given. Excel opens a chart whose series share it; ChartBuilder still numbers it across the primary and secondary chart.

    lineColor?: string | null

    Line colour as six hex digits RRGGBB without #, written verbatim as a:srgbClr val.

    lineWidth?: number | null

    Line width in EMU (12700 per point), written only with lineColor.

    marker?: MarkerStyleType | null

    Written for line, stock, scatter and radar charts only; other types drop it.

    name?: string | null

    Series name as a cell-reference formula (c:tx/c:strRef/c:f, for example 'Sheet1!$B$1'), never a literal. Written in preference to nameLiteral.

    nameLiteral?: string | null

    Series name as literal text (c:tx/c:v), written when name is unset.

    order: number

    c:order, the series' place in the plotting order. It must be unique across the series of the chart and its secondaryChart: Excel refuses a file where two share it, so validateChartData throws on such a chart, Workbook.validate() reports it and the write fails with INVALID_WORKBOOK. Written and read as given, never renumbered.

    smooth?: boolean | null

    Written for line, stock and scatter charts only; other types drop it.

    trendline?: TrendlineData | null
    valRef: string
    xValRef?: string | null