Stacked Area Graph

Raw period/category rows compile into stacked boundaries, then render as filled bands between y0 and y1.

Stacked Area Graph

Data Sources

8

Fields

16

Scales

3

Layers

13

Glyphs

54

line 28 / path 6 / text 17 / rect 3

Stacked Area Graph: 8 pointsStacked Area Graph: 8 pointsStacked Area Graph: 8 pointsQ1Q2Q3Q4Q5Q6Q7Q8-20k20k60k100k140kStacked Area Graph: 8 pointsStacked Area Graph: 8 pointsStacked Area Graph: 8 pointsSubscriptionsServicesLicensingSeries

Data Flow Diagram

0/519 nodes
0/955 edges
519 hidden

Select a glyph to highlight its complete source path.

Scope

Roles

source
transform
field
scale
layer
param
glyph

No matching flow nodes

Adjust search, scope, or role filters.

Available Data

8 tables
1 transforms

Raw area series

raw-area-series
raw
6 columns
feeds stack-area-boundaries

ChartSpec

{
  "id": "catalogue.stacked-area-graph",
  "data": [
    {
      "id": "raw-area-series",
      "rows": 24
    },
    {
      "id": "segments",
      "rows": 24
    },
    {
      "id": "__guide.x-grid",
      "rows": 8
    },
    {
      "id": "__guide.y-grid",
      "rows": 5
    },
    {
      "id": "__guide.x",
      "rows": 8
    },
    {
      "id": "__guide.y",
      "rows": 5
    },
    {
      "id": "__guide.area-series-legend",
      "rows": 3
    },
    {
      "id": "__guide.area-series-legend.title",
      "rows": 1
    }
  ],
  "transforms": [
    {
      "id": "stack-area-boundaries",
      "type": "stack",
      "input": "raw-area-series",
      "output": "segments",
      "options": {
        "order": [
          "Subscriptions",
          "Services",
          "Licensing"
        ]
      }
    }
  ],
  "axes": [
    {
      "id": "x",
      "scale": "x",
      "orientation": "bottom"
    },
    {
      "id": "y",
      "scale": "y",
      "orientation": "left",
      "tickFormat": {
        "suffix": "k",
        "maximumFractionDigits": 0
      }
    }
  ],
  "grids": [
    {
      "id": "x-grid",
      "scale": "x",
      "orientation": "x"
    },
    {
      "id": "y-grid",
      "scale": "y",
      "orientation": "y"
    }
  ],
  "legends": [
    {
      "id": "area-series-legend",
      "scale": "color",
      "kind": "color",
      "title": "Series"
    }
  ],
  "fields": [
    "period",
    "periodIndex",
    "series",
    "start",
    "end",
    "value",
    "tooltip",
    "total",
    "label",
    "x",
    "y",
    "symbolX",
    "symbolY",
    "labelX",
    "labelY",
    "text"
  ],
  "scales": [
    {
      "id": "x",
      "type": "band",
      "domain": {
        "source": "field",
        "data": "segments",
        "field": "period"
      }
    },
    {
      "id": "y",
      "type": "linear",
      "domain": {
        "source": "field",
        "data": "segments",
        "field": "end",
        "includeZero": true,
        "padding": 0.04
      }
    },
    {
      "id": "color",
      "type": "ordinal",
      "domain": {
        "source": "field",
        "data": "segments",
        "field": "series"
      }
    }
  ],
  "layers": [
    {
      "id": "x-grid",
      "mark": "line",
      "role": "guide"
    },
    {
      "id": "y-grid",
      "mark": "line",
      "role": "guide"
    },
    {
      "id": "x-axis",
      "mark": "line",
      "role": "guide"
    },
    {
      "id": "x-tick-marks",
      "mark": "line",
      "role": "guide"
    },
    {
      "id": "x-labels",
      "mark": "text",
      "role": "guide"
    },
    {
      "id": "y-axis",
      "mark": "line",
      "role": "guide"
    },
    {
      "id": "y-tick-marks",
      "mark": "line",
      "role": "guide"
    },
    {
      "id": "y-labels",
      "mark": "text",
      "role": "guide"
    },
    {
      "id": "area-series-legend-swatches",
      "mark": "rect",
      "role": "guide"
    },
    {
      "id": "area-series-legend-labels",
      "mark": "text",
      "role": "guide"
    },
    {
      "id": "area-series-legend-title",
      "mark": "text",
      "role": "guide"
    },
    {
      "id": "stacked-area-bands",
      "mark": "path",
      "role": "data",
      "path": {
        "directD": false,
        "areaBand": true,
        "closedToY": false,
        "curve": "smooth",
        "groupBy": [
          "series"
        ],
        "sortBy": "periodIndex"
      }
    },
    {
      "id": "stacked-area-edges",
      "mark": "path",
      "role": "data",
      "path": {
        "directD": false,
        "areaBand": false,
        "closedToY": false,
        "curve": "smooth",
        "groupBy": [
          "series"
        ],
        "sortBy": "periodIndex"
      }
    }
  ]
}

Resolved SceneGraph

{
  "scene": "catalogue.stacked-area-graph.scene",
  "scales": [
    {
      "id": "x",
      "type": "band",
      "domain": [
        "Q1",
        "Q2",
        "Q3",
        "Q4",
        "Q5",
        "Q6",
        "Q7",
        "Q8"
      ],
      "range": [
        72,
        692
      ],
      "bandwidth": 69.92481203007519
    },
    {
      "id": "y",
      "type": "linear",
      "domain": [
        -20,
        140
      ],
      "range": [
        284,
        42
      ],
      "ticks": [
        -20,
        20,
        60,
        100,
        140
      ]
    },
    {
      "id": "color",
      "type": "ordinal",
      "domain": [
        "Subscriptions",
        "Services",
        "Licensing"
      ],
      "range": [
        "var(--colors-blue-9)",
        "var(--colors-green-9)",
        "var(--colors-amber-9)",
        "var(--colors-purple-9)",
        "var(--colors-red-9)"
      ]
    }
  ],
  "layers": [
    {
      "id": "x-grid",
      "role": "guide",
      "zIndex": 0,
      "glyphs": 8
    },
    {
      "id": "y-grid",
      "role": "guide",
      "zIndex": 0,
      "glyphs": 5
    },
    {
      "id": "x-axis",
      "role": "guide",
      "zIndex": 0,
      "glyphs": 1
    },
    {
      "id": "y-axis",
      "role": "guide",
      "zIndex": 0,
      "glyphs": 1
    },
    {
      "id": "x-tick-marks",
      "role": "guide",
      "zIndex": 5,
      "glyphs": 8
    },
    {
      "id": "y-tick-marks",
      "role": "guide",
      "zIndex": 5,
      "glyphs": 5
    },
    {
      "id": "stacked-area-bands",
      "role": "data",
      "zIndex": 10,
      "glyphs": 3
    },
    {
      "id": "x-labels",
      "role": "guide",
      "zIndex": 20,
      "glyphs": 8
    },
    {
      "id": "y-labels",
      "role": "guide",
      "zIndex": 20,
      "glyphs": 5
    },
    {
      "id": "stacked-area-edges",
      "role": "data",
      "zIndex": 20,
      "glyphs": 3
    },
    {
      "id": "area-series-legend-swatches",
      "role": "guide",
      "zIndex": 30,
      "glyphs": 3
    },
    {
      "id": "area-series-legend-labels",
      "role": "guide",
      "zIndex": 31,
      "glyphs": 3
    },
    {
      "id": "area-series-legend-title",
      "role": "guide",
      "zIndex": 32,
      "glyphs": 1
    }
  ]
}

Glyph Data Tree

13 layers

Full parameter lineage for the active compiler surface.

x-grid

8

y-grid

5

x-axis

1

y-axis

1

x-tick-marks

8

y-tick-marks

5

stacked-area-bands

3

x-labels

8

y-labels

5

stacked-area-edges

3

area-series-legend-swatches

3

area-series-legend-labels

3

area-series-legend-title

1

Glyph Inspector

none

Select a glyph in the chart to inspect resolved params and lineage.