{
  "version": "xarts.value-matrix/1",
  "family": "value-matrix",
  "provenance": {
    "legacyId": "clustered-heatmap"
  },
  "clusterLayout": {
    "view": "clustered-tiles",
    "measurement": "shaped",
    "margin": {
      "top": 16,
      "right": 28,
      "bottom": 56,
      "left": 56
    },
    "outerPadding": {
      "left": 16,
      "top": 16,
      "bottom": 20
    },
    "axis": {
      "fontFamily": "'Inter', system-ui, -apple-system, sans-serif",
      "fontSize": 13,
      "fill": "#3d3d3d"
    },
    "rowLabels": {
      "maximumFraction": 0.24,
      "inkPadding": 12,
      "all": true
    },
    "columnLabels": {
      "rotation": -90,
      "gap": 14,
      "maximumFraction": 0.3,
      "maximumHeight": 240,
      "preserve": true
    },
    "tree": {
      "scale": "per-tree-root",
      "rootTolerance": 1e-12,
      "fraction": 0.16,
      "minimum": 24,
      "maximum": 110,
      "gap": 12,
      "stroke": "#2a2a2a",
      "strokeWidth": 1
    },
    "colors": [
      "#c0c8d0",
      "#a0acb8",
      "#8290a0",
      "#647689",
      "#475c73",
      "#2c445d",
      "#112c47"
    ],
    "cell": {
      "minimum": 3,
      "focusInk": "#0d0d0d",
      "focusWidth": 1.5
    },
    "label": {
      "visible": true,
      "font": {
        "fontFamily": "'Inter', system-ui, -apple-system, sans-serif",
        "fontSize": 12,
        "fill": "#2a2a2a"
      },
      "inkCandidates": [
        "#000000",
        "#ffffff"
      ],
      "minimumContrast": 4.5
    },
    "legend": {
      "font": {
        "fontFamily": "'Inter', system-ui, -apple-system, sans-serif",
        "fontSize": 12,
        "fill": "#2a2a2a"
      },
      "width": 180,
      "height": 10,
      "gap": 20,
      "labelOffset": 14,
      "prefix": "",
      "suffix": "%",
      "decimals": 0
    },
    "distanceNote": {
      "visible": true,
      "font": {
        "fontFamily": "'Inter', system-ui, -apple-system, sans-serif",
        "fontSize": 12,
        "fill": "#2a2a2a"
      },
      "gap": 12,
      "lineGap": 6
    }
  },
  "data": {
    "rows": [
      {
        "Product": "Car finance",
        "Segment": "Affluent Retirees",
        "Holding (%)": 5
      },
      {
        "Product": "Car finance",
        "Segment": "Established Families",
        "Holding (%)": 43
      },
      {
        "Product": "Car finance",
        "Segment": "Gig Workers",
        "Holding (%)": 16
      },
      {
        "Product": "Car finance",
        "Segment": "Graduates",
        "Holding (%)": 12
      },
      {
        "Product": "Car finance",
        "Segment": "Mass Affluent",
        "Holding (%)": 14
      },
      {
        "Product": "Car finance",
        "Segment": "Pre-Retirees",
        "Holding (%)": 9
      },
      {
        "Product": "Car finance",
        "Segment": "Small Business Owners",
        "Holding (%)": 47
      },
      {
        "Product": "Car finance",
        "Segment": "Students",
        "Holding (%)": 4
      },
      {
        "Product": "Car finance",
        "Segment": "Young Families",
        "Holding (%)": 38
      },
      {
        "Product": "Credit card",
        "Segment": "Affluent Retirees",
        "Holding (%)": 42
      },
      {
        "Product": "Credit card",
        "Segment": "Established Families",
        "Holding (%)": 81
      },
      {
        "Product": "Credit card",
        "Segment": "Gig Workers",
        "Holding (%)": 31
      },
      {
        "Product": "Credit card",
        "Segment": "Graduates",
        "Holding (%)": 34
      },
      {
        "Product": "Credit card",
        "Segment": "Mass Affluent",
        "Holding (%)": 58
      },
      {
        "Product": "Credit card",
        "Segment": "Pre-Retirees",
        "Holding (%)": 49
      },
      {
        "Product": "Credit card",
        "Segment": "Small Business Owners",
        "Holding (%)": 77
      },
      {
        "Product": "Credit card",
        "Segment": "Students",
        "Holding (%)": 22
      },
      {
        "Product": "Credit card",
        "Segment": "Young Families",
        "Holding (%)": 74
      },
      {
        "Product": "Current account",
        "Segment": "Affluent Retirees",
        "Holding (%)": 98
      },
      {
        "Product": "Current account",
        "Segment": "Established Families",
        "Holding (%)": 99
      },
      {
        "Product": "Current account",
        "Segment": "Gig Workers",
        "Holding (%)": 94
      },
      {
        "Product": "Current account",
        "Segment": "Graduates",
        "Holding (%)": 97
      },
      {
        "Product": "Current account",
        "Segment": "Mass Affluent",
        "Holding (%)": 99
      },
      {
        "Product": "Current account",
        "Segment": "Pre-Retirees",
        "Holding (%)": 99
      },
      {
        "Product": "Current account",
        "Segment": "Small Business Owners",
        "Holding (%)": 97
      },
      {
        "Product": "Current account",
        "Segment": "Students",
        "Holding (%)": 96
      },
      {
        "Product": "Current account",
        "Segment": "Young Families",
        "Holding (%)": 98
      },
      {
        "Product": "Debit card",
        "Segment": "Affluent Retirees",
        "Holding (%)": 48
      },
      {
        "Product": "Debit card",
        "Segment": "Established Families",
        "Holding (%)": 79
      },
      {
        "Product": "Debit card",
        "Segment": "Gig Workers",
        "Holding (%)": 88
      },
      {
        "Product": "Debit card",
        "Segment": "Graduates",
        "Holding (%)": 91
      },
      {
        "Product": "Debit card",
        "Segment": "Mass Affluent",
        "Holding (%)": 62
      },
      {
        "Product": "Debit card",
        "Segment": "Pre-Retirees",
        "Holding (%)": 55
      },
      {
        "Product": "Debit card",
        "Segment": "Small Business Owners",
        "Holding (%)": 76
      },
      {
        "Product": "Debit card",
        "Segment": "Students",
        "Holding (%)": 93
      },
      {
        "Product": "Debit card",
        "Segment": "Young Families",
        "Holding (%)": 84
      },
      {
        "Product": "Home insurance",
        "Segment": "Affluent Retirees",
        "Holding (%)": 63
      },
      {
        "Product": "Home insurance",
        "Segment": "Established Families",
        "Holding (%)": 58
      },
      {
        "Product": "Home insurance",
        "Segment": "Gig Workers",
        "Holding (%)": 11
      },
      {
        "Product": "Home insurance",
        "Segment": "Graduates",
        "Holding (%)": 8
      },
      {
        "Product": "Home insurance",
        "Segment": "Mass Affluent",
        "Holding (%)": 71
      },
      {
        "Product": "Home insurance",
        "Segment": "Pre-Retirees",
        "Holding (%)": 68
      },
      {
        "Product": "Home insurance",
        "Segment": "Small Business Owners",
        "Holding (%)": 44
      },
      {
        "Product": "Home insurance",
        "Segment": "Students",
        "Holding (%)": 3
      },
      {
        "Product": "Home insurance",
        "Segment": "Young Families",
        "Holding (%)": 49
      },
      {
        "Product": "Investment funds",
        "Segment": "Affluent Retirees",
        "Holding (%)": 72
      },
      {
        "Product": "Investment funds",
        "Segment": "Established Families",
        "Holding (%)": 18
      },
      {
        "Product": "Investment funds",
        "Segment": "Gig Workers",
        "Holding (%)": 7
      },
      {
        "Product": "Investment funds",
        "Segment": "Graduates",
        "Holding (%)": 6
      },
      {
        "Product": "Investment funds",
        "Segment": "Mass Affluent",
        "Holding (%)": 57
      },
      {
        "Product": "Investment funds",
        "Segment": "Pre-Retirees",
        "Holding (%)": 66
      },
      {
        "Product": "Investment funds",
        "Segment": "Small Business Owners",
        "Holding (%)": 24
      },
      {
        "Product": "Investment funds",
        "Segment": "Students",
        "Holding (%)": 2
      },
      {
        "Product": "Investment funds",
        "Segment": "Young Families",
        "Holding (%)": 12
      },
      {
        "Product": "Mobile wallet",
        "Segment": "Affluent Retirees",
        "Holding (%)": 14
      },
      {
        "Product": "Mobile wallet",
        "Segment": "Established Families",
        "Holding (%)": 47
      },
      {
        "Product": "Mobile wallet",
        "Segment": "Gig Workers",
        "Holding (%)": 90
      },
      {
        "Product": "Mobile wallet",
        "Segment": "Graduates",
        "Holding (%)": 82
      },
      {
        "Product": "Mobile wallet",
        "Segment": "Mass Affluent",
        "Holding (%)": 34
      },
      {
        "Product": "Mobile wallet",
        "Segment": "Pre-Retirees",
        "Holding (%)": 21
      },
      {
        "Product": "Mobile wallet",
        "Segment": "Small Business Owners",
        "Holding (%)": 58
      },
      {
        "Product": "Mobile wallet",
        "Segment": "Students",
        "Holding (%)": 87
      },
      {
        "Product": "Mobile wallet",
        "Segment": "Young Families",
        "Holding (%)": 61
      },
      {
        "Product": "Mortgage",
        "Segment": "Affluent Retirees",
        "Holding (%)": 18
      },
      {
        "Product": "Mortgage",
        "Segment": "Established Families",
        "Holding (%)": 63
      },
      {
        "Product": "Mortgage",
        "Segment": "Gig Workers",
        "Holding (%)": 8
      },
      {
        "Product": "Mortgage",
        "Segment": "Graduates",
        "Holding (%)": 5
      },
      {
        "Product": "Mortgage",
        "Segment": "Mass Affluent",
        "Holding (%)": 58
      },
      {
        "Product": "Mortgage",
        "Segment": "Pre-Retirees",
        "Holding (%)": 41
      },
      {
        "Product": "Mortgage",
        "Segment": "Small Business Owners",
        "Holding (%)": 46
      },
      {
        "Product": "Mortgage",
        "Segment": "Students",
        "Holding (%)": 1
      },
      {
        "Product": "Mortgage",
        "Segment": "Young Families",
        "Holding (%)": 54
      },
      {
        "Product": "Overdraft",
        "Segment": "Affluent Retirees",
        "Holding (%)": 8
      },
      {
        "Product": "Overdraft",
        "Segment": "Established Families",
        "Holding (%)": 52
      },
      {
        "Product": "Overdraft",
        "Segment": "Gig Workers",
        "Holding (%)": 46
      },
      {
        "Product": "Overdraft",
        "Segment": "Graduates",
        "Holding (%)": 38
      },
      {
        "Product": "Overdraft",
        "Segment": "Mass Affluent",
        "Holding (%)": 19
      },
      {
        "Product": "Overdraft",
        "Segment": "Pre-Retirees",
        "Holding (%)": 12
      },
      {
        "Product": "Overdraft",
        "Segment": "Small Business Owners",
        "Holding (%)": 63
      },
      {
        "Product": "Overdraft",
        "Segment": "Students",
        "Holding (%)": 41
      },
      {
        "Product": "Overdraft",
        "Segment": "Young Families",
        "Holding (%)": 57
      },
      {
        "Product": "Personal loan",
        "Segment": "Affluent Retirees",
        "Holding (%)": 4
      },
      {
        "Product": "Personal loan",
        "Segment": "Established Families",
        "Holding (%)": 39
      },
      {
        "Product": "Personal loan",
        "Segment": "Gig Workers",
        "Holding (%)": 21
      },
      {
        "Product": "Personal loan",
        "Segment": "Graduates",
        "Holding (%)": 17
      },
      {
        "Product": "Personal loan",
        "Segment": "Mass Affluent",
        "Holding (%)": 11
      },
      {
        "Product": "Personal loan",
        "Segment": "Pre-Retirees",
        "Holding (%)": 7
      },
      {
        "Product": "Personal loan",
        "Segment": "Small Business Owners",
        "Holding (%)": 51
      },
      {
        "Product": "Personal loan",
        "Segment": "Students",
        "Holding (%)": 9
      },
      {
        "Product": "Personal loan",
        "Segment": "Young Families",
        "Holding (%)": 44
      },
      {
        "Product": "Private pension",
        "Segment": "Affluent Retirees",
        "Holding (%)": 81
      },
      {
        "Product": "Private pension",
        "Segment": "Established Families",
        "Holding (%)": 29
      },
      {
        "Product": "Private pension",
        "Segment": "Gig Workers",
        "Holding (%)": 6
      },
      {
        "Product": "Private pension",
        "Segment": "Graduates",
        "Holding (%)": 9
      },
      {
        "Product": "Private pension",
        "Segment": "Mass Affluent",
        "Holding (%)": 64
      },
      {
        "Product": "Private pension",
        "Segment": "Pre-Retirees",
        "Holding (%)": 78
      },
      {
        "Product": "Private pension",
        "Segment": "Small Business Owners",
        "Holding (%)": 33
      },
      {
        "Product": "Private pension",
        "Segment": "Students",
        "Holding (%)": 1
      },
      {
        "Product": "Private pension",
        "Segment": "Young Families",
        "Holding (%)": 21
      }
    ]
  },
  "encoding": {
    "shape": "long",
    "row": "Product",
    "column": "Segment",
    "value": "Holding (%)",
    "unit": "% del segmento con el producto",
    "valueBounds": {
      "min": 0,
      "max": 100
    }
  },
  "calculation": {
    "meaning": {
      "type": "values"
    },
    "duplicates": "reject",
    "missing": "reject",
    "rowOrder": {
      "source": "explicit",
      "values": [
        "Car finance",
        "Credit card",
        "Current account",
        "Debit card",
        "Home insurance",
        "Investment funds",
        "Mobile wallet",
        "Mortgage",
        "Overdraft",
        "Personal loan",
        "Private pension"
      ]
    },
    "columnOrder": {
      "source": "explicit",
      "values": [
        "Affluent Retirees",
        "Established Families",
        "Gig Workers",
        "Graduates",
        "Mass Affluent",
        "Pre-Retirees",
        "Small Business Owners",
        "Students",
        "Young Families"
      ]
    }
  },
  "clustering": {
    "axes": "both",
    "distance": "pearson-correlation",
    "linkage": "average",
    "ties": "lowest-input-index",
    "constantProfiles": "reject",
    "epsilonMultiplier": 16,
    "dendrogram": {
      "extent": 110,
      "distanceMax": 2
    }
  },
  "layout": {
    "orientation": "vertical",
    "triangle": "all"
  },
  "color": {
    "kind": "sequential",
    "steps": 7,
    "domain": {
      "source": "data",
      "includeZero": false
    }
  },
  "marks": {
    "geometry": {
      "shape": "tile"
    },
    "opacity": 1,
    "gap": 1,
    "radius": 0
  },
  "labels": {
    "position": "center",
    "visible": true,
    "fontSize": 12,
    "decimals": 0
  },
  "axes": {
    "rowTitle": "Producto",
    "columnTitle": "Segmento"
  },
  "legend": {
    "visible": true
  },
  "summary": {
    "visible": false
  },
  "annotations": [],
  "document": {
    "textOverflow": "preserve",
    "header": {
      "title": "Nine segments, three behaviors",
      "subtitle": "Product holding by customer segment, reordered by similarity · retail bank, 11 products × 9 segments",
      "source": "Customer analytics, product holding file (share of segment holding each product)"
    },
    "footer": {},
    "spacing": {
      "horizontalPadding": 24,
      "topPadding": 22,
      "bottomPadding": 16,
      "minimumTextGap": 4
    }
  },
  "output": {
    "filename": "clustered-heatmap",
    "embedSpec": true,
    "geometryDecimals": 2
  },
  "presentation": {
    "theme": "anlak",
    "dimensions": {
      "width": 940,
      "height": 940
    },
    "locale": "en-US",
    "fonts": "reference",
    "surface": "theme",
    "framePadding": 24
  }
}
