{
  "version": "xarts.intervals/1",
  "family": "intervals",
  "operation": "paired-values",
  "provenance": {
    "legacyId": "dotplot"
  },
  "data": {
    "rows": [
      {
        "2023": 85,
        "2024": 90,
        "Category": "United States",
        "Change": 5
      },
      {
        "2023": 80,
        "2024": 88,
        "Category": "South Korea",
        "Change": 8
      },
      {
        "2023": 78,
        "2024": 84,
        "Category": "Germany",
        "Change": 6
      },
      {
        "2023": 76,
        "2024": 81,
        "Category": "UK",
        "Change": 5
      },
      {
        "2023": 82,
        "2024": 80,
        "Category": "Japan",
        "Change": -2
      },
      {
        "2023": 73,
        "2024": 79,
        "Category": "Canada",
        "Change": 6
      },
      {
        "2023": 69,
        "2024": 75,
        "Category": "Australia",
        "Change": 6
      },
      {
        "2023": 71,
        "2024": 74,
        "Category": "France",
        "Change": 3
      },
      {
        "2023": 42,
        "2024": 51,
        "Category": "Brazil",
        "Change": 9
      },
      {
        "2023": 38,
        "2024": 49,
        "Category": "India",
        "Change": 11
      }
    ]
  },
  "encoding": {
    "category": "Category",
    "start": "2023",
    "end": "2024",
    "providedDifference": "Change"
  },
  "calculation": {
    "order": "input",
    "difference": "end-minus-start",
    "percentBase": "start",
    "zeroBase": "null",
    "tolerance": 1e-9,
    "domain": {
      "origin": "extent",
      "paddingRatio": [
        0.15,
        0.08
      ],
      "paddingAbsolute": 0,
      "nice": true
    }
  },
  "layout": {
    "exportMeasurement": "shaped",
    "view": "paired-dots",
    "margin": {
      "top": 32,
      "right": 20,
      "bottom": 47,
      "left": 90
    },
    "measureCategory": "none",
    "categoryMaxWidth": 200,
    "categoryWidthRatio": 0.28,
    "bandPadding": 0.3
  },
  "marks": {
    "radius": 5,
    "lineWidth": 1,
    "lineColor": "border",
    "startColor": "cyan",
    "endColor": "blue",
    "colorBy": "endpoint",
    "positiveColor": "emerald",
    "negativeColor": "red",
    "neutralColor": "cyan",
    "opacity": 0.9,
    "rowGuides": true,
    "guideColor": "borderLight",
    "baseline": "frame",
    "arrow": {
      "length": 11,
      "width": 9,
      "startFill": "surface",
      "lineOpacity": 0.75
    }
  },
  "labels": {
    "start": "2023",
    "end": "2024",
    "delta": false,
    "deltaMode": "absolute",
    "deltaOffset": 8,
    "deltaFontSize": 11,
    "categoryFontSize": 11,
    "cutFontSize": 12,
    "cutFontWeight": 600,
    "categoryOffset": 8,
    "cutOffset": 8,
    "orderVisible": false,
    "orderText": {
      "input": "Filas en el orden del fichero",
      "end-desc": "Filas ordenadas por el valor de llegada",
      "difference-desc": "Filas ordenadas por el cambio (Δ)",
      "category": "Filas ordenadas por categoría"
    }
  },
  "axes": {
    "ticks": 5,
    "grid": true
  },
  "legend": {
    "visible": true,
    "position": "right",
    "shape": "circle"
  },
  "annotations": [],
  "document": {
    "header": {
      "title": "Innovation Index",
      "subtitle": "Country scores in 2023 and 2024"
    },
    "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
    }
  },
  "presentation": {
    "theme": "anlak",
    "dimensions": {
      "width": 800,
      "height": 480
    },
    "locale": "en-US",
    "fonts": "reference",
    "surface": "theme",
    "framePadding": 24
  },
  "output": {
    "filename": "dotplot-margin-quality",
    "embedSpec": true,
    "geometryDecimals": 2
  }
}
