{
  "version": "xarts.value-matrix/1",
  "family": "value-matrix",
  "operation": "cell-grid",
  "provenance": {
    "legacyId": "adjacency"
  },
  "data": {
    "unit": "Weight",
    "rowOrder": [
      "API Gateway",
      "Auth Service",
      "User Service",
      "Order Service",
      "Payment Service",
      "Notification",
      "Analytics",
      "Cache Layer"
    ],
    "columnOrder": [
      "API Gateway",
      "Auth Service",
      "User Service",
      "Order Service",
      "Payment Service",
      "Notification",
      "Analytics",
      "Cache Layer"
    ],
    "cells": [
      {
        "row": "API Gateway",
        "column": "Auth Service",
        "value": 5
      },
      {
        "row": "API Gateway",
        "column": "User Service",
        "value": 4
      },
      {
        "row": "API Gateway",
        "column": "Order Service",
        "value": 4
      },
      {
        "row": "API Gateway",
        "column": "Analytics",
        "value": 2
      },
      {
        "row": "API Gateway",
        "column": "Cache Layer",
        "value": 3
      },
      {
        "row": "Auth Service",
        "column": "User Service",
        "value": 3
      },
      {
        "row": "Auth Service",
        "column": "Analytics",
        "value": 1
      },
      {
        "row": "Auth Service",
        "column": "Cache Layer",
        "value": 4
      },
      {
        "row": "User Service",
        "column": "Auth Service",
        "value": 2
      },
      {
        "row": "User Service",
        "column": "Order Service",
        "value": 2
      },
      {
        "row": "User Service",
        "column": "Notification",
        "value": 1
      },
      {
        "row": "User Service",
        "column": "Analytics",
        "value": 1
      },
      {
        "row": "User Service",
        "column": "Cache Layer",
        "value": 2
      },
      {
        "row": "Order Service",
        "column": "Auth Service",
        "value": 1
      },
      {
        "row": "Order Service",
        "column": "User Service",
        "value": 2
      },
      {
        "row": "Order Service",
        "column": "Payment Service",
        "value": 4
      },
      {
        "row": "Order Service",
        "column": "Notification",
        "value": 3
      },
      {
        "row": "Order Service",
        "column": "Analytics",
        "value": 2
      },
      {
        "row": "Order Service",
        "column": "Cache Layer",
        "value": 1
      },
      {
        "row": "Payment Service",
        "column": "Auth Service",
        "value": 1
      },
      {
        "row": "Payment Service",
        "column": "Order Service",
        "value": 2
      },
      {
        "row": "Payment Service",
        "column": "Notification",
        "value": 2
      },
      {
        "row": "Payment Service",
        "column": "Analytics",
        "value": 1
      },
      {
        "row": "Notification",
        "column": "User Service",
        "value": 1
      },
      {
        "row": "Notification",
        "column": "Analytics",
        "value": 1
      },
      {
        "row": "Analytics",
        "column": "User Service",
        "value": 1
      },
      {
        "row": "Analytics",
        "column": "Order Service",
        "value": 1
      },
      {
        "row": "Analytics",
        "column": "Payment Service",
        "value": 1
      },
      {
        "row": "Analytics",
        "column": "Cache Layer",
        "value": 2
      }
    ]
  },
  "calculation": {
    "meaning": "weighted-connections",
    "network": {
      "direction": "directed",
      "selfLinks": "allow",
      "absence": "no-connection"
    },
    "missing": "blank",
    "duplicates": "reject",
    "correlationTolerance": 0
  },
  "color": {
    "domain": {
      "source": "zero-to-maximum"
    },
    "range": [
      "border",
      "series.blue"
    ],
    "interpolation": "rgb"
  },
  "layout": {
    "orientation": "vertical",
    "fit": "square",
    "margin": {
      "top": 170,
      "right": 28,
      "bottom": 28,
      "left": 160
    },
    "bandPadding": 0.08,
    "legendReservation": 0
  },
  "marks": {
    "shape": "tile",
    "padding": 2,
    "radius": 2,
    "stroke": null,
    "strokeWidth": 0,
    "opacity": 1,
    "zeroColor": "surfaceAlt"
  },
  "axes": {
    "smart": false,
    "columnPosition": "top",
    "columnRotation": -90,
    "label": {
      "fontSize": 12,
      "fontWeight": 500,
      "color": "textSecondary"
    },
    "titles": {
      "row": "Source Service",
      "column": "Target Service",
      "rowOffset": -130,
      "columnOffset": -145,
      "style": {
        "fontSize": 12,
        "fontWeight": 600,
        "color": "textSecondary"
      }
    }
  },
  "labels": {
    "visible": true,
    "style": {
      "fontSize": 11,
      "fontWeight": 500,
      "color": "textSecondary"
    },
    "decimals": 0,
    "contrastThreshold": 0.6,
    "contrastColor": "surface",
    "contrastThresholdMode": "maximum-fraction",
    "zeroVisible": false
  },
  "legend": {
    "visible": false,
    "width": 200,
    "height": 10,
    "offset": 28,
    "radius": 4,
    "labelOffset": 14,
    "label": {
      "fontSize": 12,
      "color": "textSecondary"
    }
  },
  "annotations": [],
  "document": {
    "header": {
      "title": "Adjacency Matrix",
      "subtitle": "Call weights between the eight services of a microservices architecture"
    },
    "footer": {
      "source": "xarts · demo data",
      "notes": "Illustrative data to explore the chart and replace with your own."
    },
    "spacing": {
      "horizontalPadding": 24,
      "topPadding": 22,
      "bottomPadding": 16,
      "minimumTextGap": 4
    }
  },
  "presentation": {
    "theme": "anlak",
    "dimensions": {
      "width": 800,
      "height": 600
    },
    "locale": "en-US",
    "fonts": "reference",
    "surface": "theme",
    "framePadding": 24
  },
  "output": {
    "filename": "adjacency-quality",
    "embedSpec": true,
    "geometryDecimals": 2
  }
}
