{
  "version": "xarts.coordinate-marks/1",
  "family": "coordinate-marks",
  "operation": "provided-observations",
  "provenance": {
    "legacyId": "bubble"
  },
  "data": {
    "rows": [
      {
        "id": "1",
        "label": "United States",
        "x": 65280,
        "y": 78.9,
        "size": 331900000,
        "group": "Americas"
      },
      {
        "id": "2",
        "label": "China",
        "x": 10500,
        "y": 76.9,
        "size": 1411778000,
        "group": "Asia"
      },
      {
        "id": "3",
        "label": "Japan",
        "x": 40247,
        "y": 84.6,
        "size": 125800000,
        "group": "Asia"
      },
      {
        "id": "4",
        "label": "Germany",
        "x": 46445,
        "y": 81.3,
        "size": 83200000,
        "group": "Europe"
      },
      {
        "id": "5",
        "label": "India",
        "x": 2277,
        "y": 69.7,
        "size": 1393409000,
        "group": "Asia"
      },
      {
        "id": "6",
        "label": "United Kingdom",
        "x": 42330,
        "y": 81.3,
        "size": 67900000,
        "group": "Europe"
      },
      {
        "id": "7",
        "label": "France",
        "x": 40494,
        "y": 82.7,
        "size": 67390000,
        "group": "Europe"
      },
      {
        "id": "8",
        "label": "Brazil",
        "x": 8717,
        "y": 75.9,
        "size": 214300000,
        "group": "Americas"
      },
      {
        "id": "9",
        "label": "Italy",
        "x": 33190,
        "y": 83.6,
        "size": 59550000,
        "group": "Europe"
      },
      {
        "id": "10",
        "label": "Canada",
        "x": 46195,
        "y": 82.3,
        "size": 38250000,
        "group": "Americas"
      },
      {
        "id": "11",
        "label": "South Korea",
        "x": 31846,
        "y": 83.5,
        "size": 51780000,
        "group": "Asia"
      },
      {
        "id": "12",
        "label": "Australia",
        "x": 51812,
        "y": 83.4,
        "size": 25690000,
        "group": "Oceania"
      },
      {
        "id": "13",
        "label": "Nigeria",
        "x": 2097,
        "y": 54.7,
        "size": 211400000,
        "group": "Africa"
      },
      {
        "id": "14",
        "label": "Mexico",
        "x": 9946,
        "y": 75.1,
        "size": 126014000,
        "group": "Americas"
      },
      {
        "id": "15",
        "label": "Spain",
        "x": 29565,
        "y": 83.6,
        "size": 47350000,
        "group": "Europe"
      }
    ]
  },
  "encoding": {
    "id": "id",
    "label": "label",
    "x": "x",
    "y": "y",
    "size": "size",
    "group": "group",
    "units": {
      "x": {
        "label": "GDP per capita",
        "unit": "USD/person"
      },
      "y": {
        "label": "Life expectancy",
        "unit": "years"
      },
      "size": {
        "label": "Population",
        "unit": "people"
      }
    },
    "groups": [
      {
        "id": "Americas",
        "label": "Americas",
        "fill": "blue",
        "stroke": "surface",
        "strokeWidth": 1.5,
        "labelWeight": 400
      },
      {
        "id": "Asia",
        "label": "Asia",
        "fill": "teal",
        "stroke": "surface",
        "strokeWidth": 1.5,
        "labelWeight": 400
      },
      {
        "id": "Europe",
        "label": "Europe",
        "fill": "green",
        "stroke": "surface",
        "strokeWidth": 1.5,
        "labelWeight": 400
      },
      {
        "id": "Oceania",
        "label": "Oceania",
        "fill": "violet",
        "stroke": "surface",
        "strokeWidth": 1.5,
        "labelWeight": 400
      },
      {
        "id": "Africa",
        "label": "Africa",
        "fill": "orange",
        "stroke": "surface",
        "strokeWidth": 1.5,
        "labelWeight": 400
      }
    ]
  },
  "calculation": {
    "xDomain": {
      "source": "zero-maximum",
      "padding": 0.05
    },
    "yDomain": {
      "source": "extent",
      "paddingMode": "fraction",
      "minimumSpan": 1,
      "padding": [
        0.03,
        0.03
      ],
      "includeZero": false
    },
    "niceX": true,
    "niceY": true,
    "size": {
      "mapping": "sqrt-interpolated",
      "domain": {
        "source": "extent",
        "padding": [
          0,
          0
        ],
        "includeZero": false
      },
      "radiusRange": [
        6,
        40
      ]
    },
    "quadrants": null
  },
  "profile": {
    "placement": {
      "mode": "measured",
      "maxWidth": 180,
      "maxLines": 4,
      "lineHeight": 1.35,
      "gap": 10,
      "edge": 10,
      "gridStep": 14,
      "guideWidth": 0.75,
      "guideColor": "textMuted"
    },
    "interaction": {
      "legend": true,
      "legendPosition": "right",
      "zoom": true,
      "reserveRadius": true,
      "radiusIterations": 4,
      "radiusTolerance": 0.5,
      "adaptiveXTicks": false,
      "insideLabels": true,
      "minimumLabelRadius": 18,
      "labelFontSize": 10
    },
    "margin": {
      "top": 40,
      "right": 56,
      "bottom": 96,
      "left": 96
    },
    "measureY": true,
    "axis": {
      "smart": true,
      "axisLines": false,
      "tickMarks": false,
      "baseline": true,
      "grid": true,
      "columns": true,
      "ticksX": 5,
      "ticksY": 5,
      "format": "number",
      "titleX": ""
    },
    "marks": {
      "fillOpacity": 0.7,
      "strokeOpacity": 1
    },
    "labels": {
      "fill": "textPrimary",
      "fontSize": 12,
      "fontWeight": 400,
      "position": "above-radius",
      "dx": 0,
      "dy": -6,
      "visible": true
    },
    "quadrants": {
      "visible": false,
      "labels": {
        "fill": "textMuted",
        "fontSize": 13,
        "fontWeight": 700
      },
      "opacity": 1,
      "opacityStyle": true,
      "backgroundOpacity": 0,
      "placement": "fractions",
      "fractions": [
        [
          0.82,
          0.18
        ],
        [
          0.82,
          0.82
        ],
        [
          0.18,
          0.82
        ],
        [
          0.18,
          0.18
        ]
      ],
      "dominantMiddle": false
    },
    "crosshair": {
      "visible": false,
      "stroke": "textMuted",
      "width": 1,
      "dash": "4 3",
      "opacity": 0.3,
      "opacityStyle": true
    },
    "endpoints": {
      "labels": {
        "fill": "textSecondary",
        "fontSize": 12,
        "fontWeight": 600
      },
      "padding": 6,
      "xLow": "Economy",
      "xHigh": "Premium",
      "yLow": "Traditional",
      "yHigh": "Innovative",
      "visible": false
    }
  },
  "annotations": [],
  "document": {
    "header": {
      "title": "Country Indicators",
      "subtitle": "Life expectancy rises with GDP per capita, from 54.7 years in Nigeria to 84.6 in Japan; sized by population"
    },
    "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": "bubble",
    "embedSpec": true,
    "geometryDecimals": 2
  }
}
