{
  "version": "xarts.intervals/1",
  "family": "intervals",
  "operation": "provided-bounds",
  "provenance": {
    "legacyId": "featureimportance"
  },
  "data": {
    "rows": [
      {
        "Feature": "Income",
        "Importance": 0.48,
        "Std Dev": 0.06
      },
      {
        "Feature": "Debt Ratio",
        "Importance": -0.31,
        "Std Dev": 0.04
      },
      {
        "Feature": "Employment Years",
        "Importance": 0.27
      },
      {
        "Feature": "Credit History",
        "Importance": 0.24,
        "Std Dev": 0.05
      },
      {
        "Feature": "Age",
        "Importance": 0.19
      },
      {
        "Feature": "Missed Payments",
        "Importance": -0.17
      },
      {
        "Feature": "Loan Amount",
        "Importance": -0.14
      },
      {
        "Feature": "Account Balance",
        "Importance": 0.12
      },
      {
        "Feature": "Num Accounts",
        "Importance": 0.09,
        "Std Dev": 0.03
      },
      {
        "Feature": "Region",
        "Importance": 0.06
      },
      {
        "Feature": "Education",
        "Importance": 0.04
      },
      {
        "Feature": "Marital Status",
        "Importance": -0.02
      }
    ],
    "unit": ""
  },
  "encoding": {
    "category": "Feature",
    "value": "Importance"
  },
  "source": {
    "kind": "provided-standard-deviation",
    "field": "Std Dev",
    "allowMissing": true,
    "multiplier": 1
  },
  "calculation": {
    "order": "absolute-value-desc",
    "domain": {
      "kind": "symmetric",
      "paddingRatio": 0,
      "roundStep": 0.1,
      "nonnegative": false,
      "nice": true
    }
  },
  "layout": {
    "view": "ranked-bars",
    "margin": {
      "top": 24,
      "right": 60,
      "bottom": 40,
      "left": 130
    },
    "measureAxis": "none",
    "pointPadding": 0.5,
    "bandPadding": 0.30000000000000004,
    "interpolation": "linear",
    "exportMeasurement": "glyph-advances"
  },
  "marks": {
    "bands": [],
    "focal": {
      "kind": "bars",
      "color": "blue",
      "negativeColor": "red",
      "opacity": 0.9,
      "radius": 5,
      "stroke": "surface",
      "strokeWidth": 2,
      "lineWidth": 2.5,
      "barRadius": 0
    },
    "error": {
      "color": "textSecondary",
      "width": 1.5,
      "cap": 6
    },
    "baseline": {
      "visible": true,
      "color": "textMuted",
      "width": 1
    }
  },
  "labels": {
    "visible": true,
    "decimals": 2,
    "signed": true,
    "fontSize": 10,
    "color": "textSecondary",
    "offset": 4,
    "levelLabels": false,
    "levelFontSize": 9,
    "levelOffset": 6,
    "focal": "Importance",
    "positive": "Positive",
    "negative": "Negative",
    "cohortPrefix": "P25–P75 · percentiles de {n} pares · {instrument}",
    "cohortMissing": "P25–P75 · GRUPO DE PARES SIN DECLARAR (ni n ni instrumento)",
    "minimumWarning": "n = {n} pares: por debajo del mínimo de {minimum} — esta banda no es un benchmark"
  },
  "axes": {
    "ticks": 5,
    "percent": false,
    "gridColumns": true,
    "baseline": false
  },
  "legend": {
    "visible": true,
    "position": "top",
    "fontSize": 10,
    "inlineOffsets": [
      0,
      70,
      155
    ],
    "inlineLabels": [
      "Current",
      "25th-75th",
      "10th-90th"
    ]
  },
  "annotations": [],
  "document": {
    "header": {
      "title": "Feature Importance",
      "subtitle": "SHAP-style ranked feature contributions to model predictions"
    },
    "footer": {
      "source": "xarts · demo data",
      "notes": "Illustrative data to explore the chart and replace with your own."
    },
    "spacing": {
      "horizontalPadding": 24,
      "topPadding": 22,
      "bottomPadding": 24,
      "minimumTextGap": 6
    }
  },
  "presentation": {
    "theme": "anlak",
    "dimensions": {
      "width": 800,
      "height": 480
    },
    "locale": "en-US",
    "fonts": "reference",
    "surface": "theme",
    "framePadding": 24
  },
  "output": {
    "filename": "featureimportance",
    "embedSpec": true,
    "geometryDecimals": 2
  }
}
