charturbo - v0.1.0
    Preparing search index...

    Interface LineSeriesDescriptor

    Style fields of a LineSeriesDescriptor.

    interface LineSeriesDescriptor {
        band?: LineBandOptions;
        color?: ColorInput;
        curve?: LineCurve;
        dash?: number[];
        decal?: DecalOverride;
        lineWidth?: number;
        marker?: boolean | LineMarkerOptions;
        name: string;
        nulls?: LineNullPolicy;
        pieces?: LinePiece[];
        piecesBy?: "x" | "y";
        pointSize?: number;
        values: number[] | Float32Array<ArrayBufferLike>;
        x?: number[] | Float64Array<ArrayBufferLike> | Date[];
        yAxis?: "left" | "right";
        yAxisIndex?: number;
        zOffset?: number;
    }

    Hierarchy (View Summary)

    Index

    Range band (error band / confidence interval) filled beneath the line in the series color; shares the legend entry, tooltips show lower – upper, the data table adds its columns

    color?: ColorInput

    [r, g, b, a] in 0..1 or a CSS color ('#3b82f6', 'rgb(...)', 'hsl(...)', named)

    curve?: LineCurve

    'linear' (default), 'step' / 'stepBefore' / 'stepAfter', or 'monotone' (smooth, no overshoot)

    dash?: number[]

    Dash pattern in CSS px ([6, 3]); the pattern runs on continuously along the line

    Area charts: pattern fill of this series over the chart decal (false: none)

    lineWidth?: number

    Stroke width in CSS pixels for this series (overrides LineChartOptions.lineWidth)

    marker?: boolean | LineMarkerOptions

    Data point markers (true = defaults: 6 px circles in the series color, shown while points are >= 8 px apart). Engine marks, decimated with the line.

    name: string

    Missing samples of this series (overrides the chart's nulls)

    pieces?: LinePiece[]

    Piecewise colors (ECharts visualMap pieces): [{ lte: 50, color: '#00e400' }, { gt: 50, lte: 100, color: '#ffde33' }, ...]. The stroke switches color exactly where it crosses a bound (also when decimated, zoomed, streamed, dashed or curved); area fills are banded, markers, the hover marker and the tooltip swatch follow. Outside every piece: the series color

    piecesBy?: "x" | "y"

    Value the pieces test: 'y' (default) or 'x' (data x, or the sample index without x)

    pointSize?: number

    Use marker: { size } (mapped to it when marker is not given)

    values: number[] | Float32Array<ArrayBufferLike>

    Sample values; NaN / null / undefined are missing (see nulls)

    x?: number[] | Float64Array<ArrayBufferLike> | Date[]

    x of each sample (same length as values, finite, sorted ascending; irregular spacing is fine). Give it for every series or none; without it samples are spaced evenly by index. Numbers are plain values or epoch ms (axes.x.type: 'time'); Date[] implies a time axis.

    yAxis?: "left" | "right"

    y axis of this series (2D line charts): any 'right' series opts the chart into a second y axis with its own domain / scale / ticks (axes.y2); gridlines follow the left axis (default: 'left'; ignored by area charts)

    yAxisIndex?: number

    y axis index of this series (2D line charts; wins over yAxis): 0 = axes.y, 1 = axes.y2, k >= 2 = axes.extraY[k - 2] (default: from yAxis; ignored by area charts)

    zOffset?: number

    Ignored: series depth is laid out by the engine