{
  "orthogonal": {
    "margin": {
      "top": 32,
      "right": 76,
      "bottom": 76,
      "left": 76
    },
    "axis": {
      "stroke": "transparent",
      "tickStroke": "transparent",
      "tickLength": 0,
      "labelColor": "#2a2a2a",
      "tickLabelColor": "#3d3d3d",
      "labelFontSize": 14,
      "tickLabelFontSize": 13,
      "labelFontFamily": "'Inter', system-ui, -apple-system, sans-serif",
      "tickLabelFontFamily": "'Inter', system-ui, -apple-system, sans-serif",
      "baselineStroke": "#3d3d3d",
      "baselineWidth": 1.5,
      "titleColor": "#2a2a2a",
      "titleFontSize": 13,
      "titleFontWeight": 700
    },
    "grid": {
      "stroke": "#d6cfbc",
      "strokeOpacity": 1,
      "strokeDasharray": ""
    },
    "spacing": {
      "edge": 16,
      "categoryGap": 0,
      "noteMaxLines": 4,
      "noteLineHeight": 1.8,
      "legend": {
        "fontSize": 11,
        "swatch": 12,
        "labelGap": 6,
        "itemGap": 16,
        "rowGap": 6,
        "rowPadding": 4,
        "plotGap": 20
      },
      "lineGeometry": "segments"
    },
    "measureAxis": true,
    "axisInkPadding": 16,
    "leftLabelOverflow": 0,
    "axisProportionalNumbers": false,
    "domain": {
      "padding": 0.1,
      "nice": true,
      "boundedPercent": false
    },
    "format": {
      "values": "number",
      "axis": "value",
      "compactDecimals": 0
    },
    "colors": {
      "primary": "#112c47",
      "hover": "#1f6f82",
      "stem": "#4b8596",
      "series": {}
    },
    "stemOpacity": 0.8,
    "labelOffset": 7,
    "labelFit": "ranked",
    "percentLabels": {
      "minimumSize": 26,
      "characterWidth": 9,
      "color": "auto",
      "suffix": "%"
    },
    "overlays": {
      "retention": {
        "retained": "#112c47",
        "discarded": "#919eac",
        "cutColor": "#6a6458",
        "cutWidth": 1.25,
        "cutDash": "4 3",
        "note": {
          "fontSize": 11,
          "color": "#0d0d0d",
          "gap": 6,
          "padding": 8,
          "threshold": "Corte por acumulada ≥ {threshold}",
          "elbow": "Corte por el codo ({category})",
          "manual": "Corte declarado",
          "summary": "{rule}: {retained} de {total} componentes reúnen el {share} de la varianza",
          "partial": " · las {total} dibujadas suman {drawn}"
        },
        "labels": {
          "fontSize": 10,
          "color": "#0d0d0d",
          "maximum": 6,
          "gap": 5,
          "decimals": 1
        }
      },
      "edgePair": false,
      "seriesOpacity": {},
      "lines": {
        "cumulative": {
          "color": "#9c1f1a",
          "dash": "",
          "lineCap": "butt",
          "curve": "linear",
          "pointFill": "#9c1f1a",
          "pointStroke": "none",
          "pointStrokeWidth": 0,
          "legendShape": "line"
        }
      },
      "rightAxis": {
        "domain": [
          0,
          100
        ],
        "padding": 0,
        "nice": false,
        "decimals": 0,
        "trim": true,
        "prefix": "",
        "suffix": "%",
        "measurementDx": "0.5em"
      },
      "references": [],
      "legend": {
        "container": "flex",
        "order": "before",
        "keys": [],
        "labels": {}
      }
    },
    "legend": {
      "position": "top",
      "exportMeasurement": "glyph-advances"
    }
  },
  "version": "xarts.bars/1",
  "family": "bars",
  "provenance": {
    "legacyId": "scree"
  },
  "data": {
    "rows": [
      {
        "Componente": "CP1",
        "Varianza explicada (%)": 34.8
      },
      {
        "Componente": "CP2",
        "Varianza explicada (%)": 24.1
      },
      {
        "Componente": "CP3",
        "Varianza explicada (%)": 15.6
      },
      {
        "Componente": "CP4",
        "Varianza explicada (%)": 8.9
      },
      {
        "Componente": "CP5",
        "Varianza explicada (%)": 4.6
      },
      {
        "Componente": "CP6",
        "Varianza explicada (%)": 3.2
      },
      {
        "Componente": "CP7",
        "Varianza explicada (%)": 2.4
      },
      {
        "Componente": "CP8",
        "Varianza explicada (%)": 1.7
      },
      {
        "Componente": "CP9",
        "Varianza explicada (%)": 1.3
      },
      {
        "Componente": "CP10",
        "Varianza explicada (%)": 1
      },
      {
        "Componente": "CP11",
        "Varianza explicada (%)": 0.8
      },
      {
        "Componente": "CP12",
        "Varianza explicada (%)": 0.6
      },
      {
        "Componente": "CP13",
        "Varianza explicada (%)": 0.4
      },
      {
        "Componente": "CP14",
        "Varianza explicada (%)": 0.3
      },
      {
        "Componente": "CP15",
        "Varianza explicada (%)": 0.2
      },
      {
        "Componente": "CP16",
        "Varianza explicada (%)": 0.1
      }
    ]
  },
  "encoding": {
    "category": "Componente",
    "value": "Varianza explicada (%)"
  },
  "calculation": {
    "normalize": "none",
    "negative": "reject",
    "duplicates": "reject",
    "order": "input",
    "requireDescending": true,
    "sumMax": 100.5,
    "positiveTotal": true,
    "minimumRows": 3,
    "cutoff": {
      "method": "threshold",
      "line": "cumulative",
      "threshold": 80,
      "label": "Componentes retenidas"
    }
  },
  "layout": {
    "orientation": "vertical",
    "arrangement": "single",
    "seriesOrder": [],
    "bandPadding": 0.28,
    "groupPadding": 0.14
  },
  "marks": {
    "colorMap": {},
    "radius": 0,
    "opacity": 0.94,
    "colorBy": "retention",
    "geometry": "bar"
  },
  "labels": {
    "visible": false,
    "segments": false,
    "decimals": 0,
    "divisor": 1,
    "prefix": "",
    "suffix": "",
    "fontSize": 13,
    "totals": false,
    "totalsValue": "source"
  },
  "axes": {
    "valueTitle": "Varianza explicada (%)",
    "grid": true,
    "ticks": 5
  },
  "legend": {
    "visible": false
  },
  "target": {
    "visible": false,
    "label": "Target"
  },
  "lines": [
    {
      "id": "cumulative",
      "label": "Varianza acumulada (%)",
      "measure": "running-total",
      "axis": "percent",
      "color": "negative",
      "width": 2,
      "halo": false,
      "points": true,
      "radius": 3,
      "decimals": 1
    }
  ],
  "annotations": [],
  "document": {
    "header": {
      "title": "Dieciséis parámetros del acuífero son cuatro ideas",
      "subtitle": "Componentes principales de 16 variables fisicoquímicas en 240 muestras: las cuatro primeras reúnen el 83,4 % de la varianza y de la quinta en adelante la curva ya no baja"
    },
    "footer": {
      "source": "xarts · datos de demostración",
      "notes": "Datos ilustrativos para explorar el gráfico y sustituirlos por los propios."
    },
    "spacing": {
      "horizontalPadding": 32,
      "topPadding": 24,
      "bottomPadding": 24,
      "minimumTextGap": 6
    }
  },
  "presentation": {
    "theme": "anlak",
    "dimensions": {
      "width": 800,
      "height": 540
    },
    "locale": "es-ES",
    "fonts": "reference",
    "surface": "theme",
    "framePadding": 24
  },
  "output": {
    "filename": "scree",
    "embedSpec": true,
    "geometryDecimals": 2
  }
}
