{
  "version": "xarts.coordinate-marks/1",
  "family": "coordinate-marks",
  "provenance": {
    "legacyId": "comet"
  },
  "document": {
    "textOverflow": "preserve",
    "header": {
      "title": "La recuperación se cobró en tarifa, no en ocupación",
      "subtitle": "Seis mercados urbanos españoles, 2019 → 2025: el campo entero apunta a la derecha y casi nada hacia arriba"
    },
    "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": 1200,
      "height": 760
    },
    "locale": "es-ES",
    "fonts": "reference",
    "surface": "theme",
    "framePadding": 24
  },
  "output": {
    "filename": "comet",
    "embedSpec": true,
    "geometryDecimals": 2
  },
  "annotations": [],
  "encoding": {
    "units": {
      "x": {
        "label": "ADR (€)",
        "unit": "EUR"
      },
      "y": {
        "label": "Ocupación (%)",
        "unit": "percentage-points"
      },
      "size": null
    },
    "groups": [
      {
        "id": "Barcelona",
        "label": "Barcelona",
        "fill": "#112c47"
      },
      {
        "id": "Madrid",
        "label": "Madrid",
        "fill": "#6a4a4a"
      },
      {
        "id": "Málaga",
        "label": "Málaga",
        "fill": "#4b8596"
      },
      {
        "id": "Bilbao",
        "label": "Bilbao",
        "fill": "#9c1f1a"
      },
      {
        "id": "Sevilla",
        "label": "Sevilla",
        "fill": "#2a6d6d"
      },
      {
        "id": "Valencia",
        "label": "Valencia",
        "fill": "#a25c2a"
      }
    ]
  },
  "profile": {
    "placement": {
      "mode": "measured",
      "maxWidth": 190,
      "maxLines": 5,
      "lineHeight": 1.35,
      "gap": 10,
      "edge": 10,
      "gridStep": 10,
      "guideWidth": 0.75,
      "guideColor": "textMuted"
    },
    "headChannel": {
      "maxLines": 5,
      "lineHeight": 1.35,
      "minimumGap": 6,
      "edge": 24
    },
    "tooltip": {
      "showDelta": true
    },
    "margin": {
      "top": 32,
      "right": 56,
      "bottom": 96,
      "left": 100
    },
    "axis": {
      "inkPadding": 0,
      "measurementNumbers": "proportional-nums",
      "ticksX": 6,
      "ticksY": 5,
      "percent": false,
      "titleX": "ADR (€)",
      "titleY": "Ocupación (%)",
      "baseline": false,
      "reserveTitles": true
    },
    "path": {
      "interpolation": "linear",
      "stroke": "blue",
      "width": 1.5,
      "opacity": 1
    },
    "dot": {
      "radius": 4,
      "fill": "blue",
      "stroke": "surface",
      "strokeWidth": 2,
      "opacity": 1,
      "hoverRadius": 0
    },
    "head": {
      "radius": 5,
      "fill": "blue",
      "stroke": "surface",
      "strokeWidth": 1.5,
      "opacity": 1,
      "hoverRadius": 0
    },
    "tail": {
      "radius": 2.75,
      "fill": "surface",
      "stroke": "blue",
      "strokeWidth": 1.25,
      "opacity": 1,
      "hoverRadius": 0
    },
    "labels": {
      "mode": "heads",
      "fontSize": 11,
      "fontWeight": 600,
      "fill": "textPrimary",
      "gap": 12,
      "maxWidth": 190,
      "maximumWidthFraction": 0.32
    },
    "arrows": {
      "visible": false,
      "size": 4,
      "fill": "blue",
      "opacity": 0.6
    },
    "ribbon": {
      "tailHalfWidth": 1,
      "headHalfWidth": 5,
      "widthMeaning": "observation-index",
      "opacity": 0.8,
      "dimOpacity": 0.28,
      "rounding": 2
    },
    "guides": {
      "width": 1,
      "opacity": 0.5,
      "minGap": 14,
      "minDeviation": 2
    },
    "note": {
      "text": "el grosor ordena en el tiempo, no mide",
      "fontSize": 10,
      "fill": "textMuted",
      "showOrder": true,
      "showCommonEndpoints": true
    },
    "reference": {
      "stroke": "red",
      "width": 1.5,
      "dash": "6,4",
      "label": "Tangency",
      "ratePrefix": "Rf=",
      "rateSuffix": "%",
      "rateLabelSize": 10,
      "rateLabelFill": "textMuted",
      "rateMark": {
        "radius": 4,
        "fill": "red",
        "stroke": "none",
        "strokeWidth": 0,
        "opacity": 0.8,
        "hoverRadius": 0
      },
      "endOffset": 1
    },
    "legend": {
      "visible": false,
      "y": -14,
      "items": [],
      "fill": "textMuted"
    },
    "zoom": false
  },
  "operation": "ordered-coordinate-paths",
  "data": {
    "rows": [
      {
        "id": "1",
        "label": "2019",
        "group": "Barcelona",
        "x": 128,
        "y": 79,
        "order": 1
      },
      {
        "id": "2",
        "label": "2021",
        "group": "Barcelona",
        "x": 104,
        "y": 38,
        "order": 2
      },
      {
        "id": "3",
        "label": "2023",
        "group": "Barcelona",
        "x": 168,
        "y": 75,
        "order": 3
      },
      {
        "id": "4",
        "label": "2025",
        "group": "Barcelona",
        "x": 192,
        "y": 79,
        "order": 4
      },
      {
        "id": "5",
        "label": "2019",
        "group": "Madrid",
        "x": 105,
        "y": 76,
        "order": 1
      },
      {
        "id": "6",
        "label": "2021",
        "group": "Madrid",
        "x": 88,
        "y": 42,
        "order": 2
      },
      {
        "id": "7",
        "label": "2023",
        "group": "Madrid",
        "x": 138,
        "y": 73,
        "order": 3
      },
      {
        "id": "8",
        "label": "2025",
        "group": "Madrid",
        "x": 158,
        "y": 78,
        "order": 4
      },
      {
        "id": "9",
        "label": "2019",
        "group": "Málaga",
        "x": 88,
        "y": 73,
        "order": 1
      },
      {
        "id": "10",
        "label": "2021",
        "group": "Málaga",
        "x": 76,
        "y": 44,
        "order": 2
      },
      {
        "id": "11",
        "label": "2023",
        "group": "Málaga",
        "x": 124,
        "y": 74,
        "order": 3
      },
      {
        "id": "12",
        "label": "2025",
        "group": "Málaga",
        "x": 142,
        "y": 78,
        "order": 4
      },
      {
        "id": "13",
        "label": "2019",
        "group": "Bilbao",
        "x": 95,
        "y": 70,
        "order": 1
      },
      {
        "id": "14",
        "label": "2021",
        "group": "Bilbao",
        "x": 82,
        "y": 44,
        "order": 2
      },
      {
        "id": "15",
        "label": "2023",
        "group": "Bilbao",
        "x": 116,
        "y": 68,
        "order": 3
      },
      {
        "id": "16",
        "label": "2025",
        "group": "Bilbao",
        "x": 128,
        "y": 71,
        "order": 4
      },
      {
        "id": "17",
        "label": "2019",
        "group": "Sevilla",
        "x": 92,
        "y": 72,
        "order": 1
      },
      {
        "id": "18",
        "label": "2021",
        "group": "Sevilla",
        "x": 79,
        "y": 45,
        "order": 2
      },
      {
        "id": "19",
        "label": "2023",
        "group": "Sevilla",
        "x": 118,
        "y": 71,
        "order": 3
      },
      {
        "id": "20",
        "label": "2025",
        "group": "Sevilla",
        "x": 132,
        "y": 74,
        "order": 4
      },
      {
        "id": "21",
        "label": "2019",
        "group": "Valencia",
        "x": 85,
        "y": 71,
        "order": 1
      },
      {
        "id": "22",
        "label": "2021",
        "group": "Valencia",
        "x": 74,
        "y": 48,
        "order": 2
      },
      {
        "id": "23",
        "label": "2023",
        "group": "Valencia",
        "x": 108,
        "y": 72,
        "order": 3
      },
      {
        "id": "24",
        "label": "2025",
        "group": "Valencia",
        "x": 124,
        "y": 76,
        "order": 4
      }
    ]
  },
  "calculation": {
    "order": "provided",
    "duplicateOrder": "reject",
    "view": "tapered-ribbon",
    "xDomain": {
      "source": "extent",
      "paddingMode": "fraction",
      "padding": [
        0.08,
        0.08
      ],
      "includeZero": false
    },
    "yDomain": {
      "source": "extent",
      "paddingMode": "fraction",
      "padding": [
        0.08,
        0.08
      ],
      "includeZero": false
    },
    "niceX": true,
    "niceY": true,
    "labels": "heads"
  }
}
