{
  "version": "xarts.metric-panels/1",
  "family": "metric-panels",
  "provenance": {
    "legacyId": "benchmarking"
  },
  "data": {
    "rows": [
      {
        "Metric": "Revenue Growth",
        "Your Value": 18.2,
        "Peer 25th": 8.5,
        "Peer Median": 12,
        "Peer 75th": 20.5,
        "Unit": "%"
      },
      {
        "Metric": "EBITDA Margin",
        "Your Value": 24.1,
        "Peer 25th": 15,
        "Peer Median": 19.5,
        "Peer 75th": 26,
        "Unit": "%"
      },
      {
        "Metric": "ROIC",
        "Your Value": 11.8,
        "Peer 25th": 7,
        "Peer Median": 10.5,
        "Peer 75th": 14,
        "Unit": "%"
      },
      {
        "Metric": "FCF Yield",
        "Your Value": 6.2,
        "Peer 25th": 3,
        "Peer Median": 5.5,
        "Peer 75th": 8,
        "Unit": "%"
      },
      {
        "Metric": "Net Debt/EBITDA",
        "Your Value": 1.8,
        "Peer 25th": 1,
        "Peer Median": 2.2,
        "Peer 75th": 3.5,
        "Unit": "x"
      },
      {
        "Metric": "Employee Productivity",
        "Your Value": 320,
        "Peer 25th": 200,
        "Peer Median": 280,
        "Peer 75th": 380,
        "Unit": "K"
      }
    ]
  },
  "encoding": {
    "metric": "Metric",
    "unit": {
      "source": "field",
      "field": "Unit"
    },
    "series": [
      {
        "id": "own",
        "field": "Your Value",
        "label": "Valor propio",
        "geometry": "circle"
      },
      {
        "id": "median",
        "field": "Peer Median",
        "label": "Mediana de pares",
        "geometry": "tick"
      }
    ],
    "ranges": [
      {
        "id": "iqr",
        "label": "P25–P75 de pares",
        "lower": "Peer 25th",
        "upper": "Peer 75th",
        "contains": [
          "median"
        ],
        "meaning": "provided-quantiles",
        "quantiles": [
          0.25,
          0.75
        ]
      }
    ]
  },
  "calculation": {
    "duplicates": "reject",
    "missing": "reject",
    "order": "input",
    "comparison": {
      "mode": "differences",
      "pairs": [
        {
          "id": "peer-position",
          "label": "Posición respecto a mediana",
          "from": "median",
          "to": "own",
          "relativeDenominator": "positive-baseline",
          "assessment": {
            "direction": {
              "source": "lookup",
              "values": {
                "Revenue Growth": "higher",
                "EBITDA Margin": "higher",
                "ROIC": "higher",
                "FCF Yield": "higher",
                "Net Debt/EBITDA": "lower",
                "Employee Productivity": "higher"
              }
            },
            "labels": {
              "favorable": "Favorable",
              "unfavorable": "Unfavorable",
              "unchanged": "Equal to median"
            }
          }
        }
      ]
    }
  },
  "layout": {
    "view": "row-comparison",
    "orientation": "horizontal",
    "columns": 1,
    "placement": "overlay",
    "scales": "independent",
    "includeZero": false,
    "padding": 0.25
  },
  "rowComparison": {
    "mode": "peer-range",
    "margin": {
      "top": 20,
      "right": 40,
      "bottom": 20,
      "left": 140
    },
    "comparison": "peer-position",
    "fromSeries": "median",
    "toSeries": "own",
    "categoryPadding": 0,
    "clampDomainAtZero": true,
    "categoryLabel": {
      "fontSize": 11,
      "fontWeight": 500,
      "gap": 8
    },
    "peer": {
      "range": "iqr",
      "height": 10,
      "opacity": 0.5,
      "medianHeight": 18,
      "medianWidth": 2,
      "radius": 6,
      "strokeWidth": 2,
      "labelGap": 6,
      "labelSize": 10
    }
  },
  "marks": {
    "opacity": 1,
    "rangeOpacity": 0.16,
    "barFraction": 0.65,
    "pointRadius": 7
  },
  "labels": {
    "visible": true,
    "fontSize": 15,
    "decimals": 1
  },
  "axes": {
    "grid": true,
    "ticks": 5
  },
  "legend": {
    "visible": false
  },
  "summary": {
    "visible": false
  },
  "annotations": [],
  "document": {
    "header": {
      "title": "Peer Benchmarking",
      "subtitle": "Company performance vs industry peer group"
    },
    "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
    }
  },
  "output": {
    "filename": "benchmarking-editorial-quality",
    "embedSpec": true,
    "geometryDecimals": 2
  },
  "presentation": {
    "theme": "anlak",
    "dimensions": {
      "width": 800,
      "height": 480
    },
    "locale": "en-US",
    "fonts": "reference",
    "surface": "theme",
    "framePadding": 24
  }
}
