SheetXL - v1.0.2
    Preparing search index...

    Interface SparklineLayout

    A sparkline laid out: its line, columns, markers and axis, in px from the cell's top-left. A painter translates it and decides nothing.

    Plain data, never stored on the model: it is computed from the sparkline's values, its group's properties, the theme and a size.

    • Every color is an IColor resolved against the workbook's theme. A painter draws it for its mode, as cells are drawn: color.toCSS(), or color.toRGBA(darkMode) for a dark grid.
    • Every length is in px, a line's width included, which the group states in points.
    • What is drawn later is drawn over what is drawn earlier: the axis, then the columns or the line, then the markers.
    interface SparklineLayout {
        axis: SparklineLayout.Line | null;
        columns: SparklineLayout.Column[];
        height: number;
        line: Polyline | null;
        markers: SparklineLayout.Marker[];
        max: number | null;
        min: number | null;
        plot: Bounds;
        type: ISparklineGroup.Type;
        width: number;
    }
    Index
    axis: SparklineLayout.Line | null

    The axis at zero, when the group shows one and zero is within the vertical range.

    One per point drawn, for columns and win/loss; empty for a line.

    height: number
    line: Polyline | null

    The line through the points, broken where an empty cell is a gap: one array of points per unbroken run. null for columns and win/loss.

    The line's markers and its highlighted points; empty for columns and win/loss.

    max: number | null
    min: number | null

    The vertical range the values were scaled to; null when there is nothing to draw.

    plot: Bounds

    Where the points are drawn: the box less its margins.

    width: number

    The cell's box in px.