{
  "title": {
    "text": "Brazil's headline deficit is large. The primary deficit is not.",
    "left": "center",
    "top": 8,
    "textStyle": { "fontSize": 16, "fontWeight": 600, "color": "#17212b" }
  },
  "tooltip": { "trigger": "axis" },
  "legend": {
    "bottom": 8,
    "data": ["Overall balance", "Primary balance"]
  },
  "grid": { "left": 72, "right": 28, "top": 56, "bottom": 72 },
  "xAxis": {
    "type": "category",
    "name": "Year",
    "nameLocation": "middle",
    "nameGap": 28,
    "data": ["2001", "2002", "2003", "2004", "2005", "2006", "2007", "2008", "2009", "2010", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026"],
    "axisLabel": { "interval": 4, "color": "#334155" },
    "axisLine": { "lineStyle": { "color": "#94a3b8" } }
  },
  "yAxis": {
    "type": "value",
    "name": "% of GDP",
    "nameLocation": "middle",
    "nameGap": 48,
    "min": -13,
    "max": 6,
    "axisLabel": { "color": "#334155" },
    "splitLine": { "lineStyle": { "color": "#e2e8f0" } }
  },
  "series": [
    {
      "name": "Overall balance",
      "type": "line",
      "data": [-3.468044, -4.148523, -5.400686, -2.954995, -3.363575, -4.868439, -2.66019, -2.392971, -4.230459, -3.553745, -2.741327, -2.351326, -3.422133, -6.274932, -9.281377, -7.990614, -7.969671, -6.990138, -4.858526, -11.636888, -2.630749, -3.964696, -7.71244, -6.171972, -8.069369, -7.706219],
      "showSymbol": true,
      "symbol": "circle",
      "symbolSize": 6,
      "itemStyle": { "color": "#1f4e79" },
      "lineStyle": { "width": 2.5, "color": "#1f4e79" },
      "markLine": {
        "silent": true,
        "symbol": "none",
        "data": [{ "yAxis": 0, "lineStyle": { "color": "#64748b", "type": "solid", "width": 1 } }],
        "label": { "show": false }
      },
      "markArea": {
        "silent": true,
        "itemStyle": { "color": "rgba(148, 163, 184, 0.18)" },
        "data": [[{ "xAxis": "2025" }, { "xAxis": "2026" }]]
      }
    },
    {
      "name": "Primary balance",
      "type": "line",
      "data": [3.129554, 3.355824, 3.553413, 4.051097, 3.864787, 1.506652, 2.880457, 3.21331, 0.911779, 1.579591, 2.737163, 2.220725, 1.519757, -0.90003, -0.85273, -2.007588, -1.624567, -0.866908, -0.082775, -7.535862, 1.978528, 1.306805, -2.167607, -0.218717, -0.388479, -0.452359],
      "showSymbol": true,
      "symbol": "diamond",
      "symbolSize": 7,
      "itemStyle": { "color": "#c45c26" },
      "lineStyle": { "width": 2.5, "type": "dashed", "color": "#c45c26" }
    }
  ]
}
