{
  "version": "xarts.coordinate-marks/1",
  "family": "coordinate-marks",
  "provenance": {
    "legacyId": "connectedscatter"
  },
  "document": {
    "textOverflow": "preserve",
    "header": {
      "title": "Economic Trajectory",
      "subtitle": "GDP growth vs unemployment over 15 years"
    },
    "footer": {
      "source": "xarts · demo data",
      "notes": "Illustrative data to explore the chart and replace with your own."
    },
    "spacing": {
      "horizontalPadding": 32,
      "topPadding": 24,
      "bottomPadding": 24,
      "minimumTextGap": 6
    }
  },
  "presentation": {
    "theme": "anlak",
    "dimensions": {
      "width": 1200,
      "height": 760
    },
    "locale": "en-US",
    "fonts": "reference",
    "surface": "theme",
    "framePadding": 24
  },
  "output": {
    "filename": "connectedscatter",
    "embedSpec": true,
    "geometryDecimals": 2
  },
  "annotations": [],
  "encoding": {
    "units": {
      "x": {
        "label": "GDP Growth %",
        "unit": "percentage-points"
      },
      "y": {
        "label": "Unemployment %",
        "unit": "percentage-points"
      },
      "size": null
    },
    "groups": [
      {
        "id": "observations",
        "label": "observations",
        "fill": "blue"
      }
    ]
  },
  "profile": {
    "placement": {
      "mode": "measured",
      "maxWidth": 190,
      "maxLines": 5,
      "lineHeight": 1.35,
      "gap": 10,
      "edge": 10,
      "gridStep": 10,
      "guideWidth": 0.75,
      "guideColor": "textMuted"
    },
    "tooltip": {
      "showDelta": false
    },
    "margin": {
      "top": 24,
      "right": 56,
      "bottom": 96,
      "left": 100
    },
    "axis": {
      "inkPadding": 4,
      "measurementNumbers": "proportional-nums",
      "ticksX": 5,
      "ticksY": 5,
      "percent": true,
      "titleX": "GDP Growth %",
      "titleY": "Unemployment %",
      "baseline": true,
      "reserveTitles": false
    },
    "path": {
      "interpolation": "monotone-x",
      "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": "extrema",
      "fontSize": 11,
      "fontWeight": null,
      "fill": "textSecondary",
      "gap": 6,
      "maxWidth": 190,
      "maximumWidthFraction": 0.32
    },
    "arrows": {
      "visible": true,
      "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": "",
      "fontSize": 10,
      "fill": "textMuted",
      "showOrder": false,
      "showCommonEndpoints": false
    },
    "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": "2010",
        "group": "observations",
        "x": 2.6,
        "y": 9.6,
        "order": 2010
      },
      {
        "id": "2",
        "label": "2011",
        "group": "observations",
        "x": 1.6,
        "y": 8.9,
        "order": 2011
      },
      {
        "id": "3",
        "label": "2012",
        "group": "observations",
        "x": 2.2,
        "y": 8.1,
        "order": 2012
      },
      {
        "id": "4",
        "label": "2013",
        "group": "observations",
        "x": 1.8,
        "y": 7.4,
        "order": 2013
      },
      {
        "id": "5",
        "label": "2014",
        "group": "observations",
        "x": 2.5,
        "y": 6.2,
        "order": 2014
      },
      {
        "id": "6",
        "label": "2015",
        "group": "observations",
        "x": 3.1,
        "y": 5.3,
        "order": 2015
      },
      {
        "id": "7",
        "label": "2016",
        "group": "observations",
        "x": 1.7,
        "y": 4.9,
        "order": 2016
      },
      {
        "id": "8",
        "label": "2017",
        "group": "observations",
        "x": 2.4,
        "y": 4.4,
        "order": 2017
      },
      {
        "id": "9",
        "label": "2018",
        "group": "observations",
        "x": 3,
        "y": 3.9,
        "order": 2018
      },
      {
        "id": "10",
        "label": "2019",
        "group": "observations",
        "x": 2.3,
        "y": 3.7,
        "order": 2019
      },
      {
        "id": "11",
        "label": "2020",
        "group": "observations",
        "x": 0.5,
        "y": 8.1,
        "order": 2020
      },
      {
        "id": "12",
        "label": "2021",
        "group": "observations",
        "x": 5.5,
        "y": 5.4,
        "order": 2021
      },
      {
        "id": "13",
        "label": "2022",
        "group": "observations",
        "x": 2.1,
        "y": 3.6,
        "order": 2022
      },
      {
        "id": "14",
        "label": "2023",
        "group": "observations",
        "x": 2.5,
        "y": 3.4,
        "order": 2023
      },
      {
        "id": "15",
        "label": "2024",
        "group": "observations",
        "x": 2.8,
        "y": 4,
        "order": 2024
      }
    ]
  },
  "calculation": {
    "order": "provided",
    "duplicateOrder": "reject",
    "view": "connected",
    "xDomain": {
      "source": "extent",
      "paddingMode": "absolute",
      "padding": [
        0.5,
        0.5
      ],
      "includeZero": false
    },
    "yDomain": {
      "source": "extent",
      "paddingMode": "absolute",
      "padding": [
        0.5,
        0.5
      ],
      "includeZero": false
    },
    "niceX": true,
    "niceY": true,
    "labels": "endpoints-and-extrema"
  }
}
