{
  "title": {
    "text": "America added solar and wind — and retired coal",
    "subtext": "Change in U.S. on-grid generating capacity, 2015–2025",
    "left": "center",
    "top": 8,
    "textStyle": { "fontSize": 16, "fontWeight": 600, "color": "#17212b" },
    "subtextStyle": { "fontSize": 12, "color": "#4b5563" }
  },
  "grid": { "left": 120, "right": 72, "top": 72, "bottom": 48 },
  "xAxis": {
    "type": "value",
    "name": "GW",
    "nameLocation": "middle",
    "nameGap": 28,
    "axisLine": { "lineStyle": { "color": "#6b7280" } },
    "splitLine": { "lineStyle": { "color": "#e5e7eb" } },
    "axisLabel": { "color": "#374151" }
  },
  "yAxis": {
    "type": "category",
    "inverse": true,
    "data": ["Solar", "Wind", "Natural gas", "Hydropower", "Nuclear", "Oil", "Coal"],
    "axisLabel": { "color": "#17212b", "fontSize": 13 },
    "axisLine": { "lineStyle": { "color": "#6b7280" } }
  },
  "series": [
    {
      "type": "bar",
      "name": "Capacity change",
      "barWidth": 18,
      "data": [
        { "value": 188.2, "itemStyle": { "color": "#0f6b4c" }, "label": { "show": true, "position": "right", "color": "#17212b", "fontSize": 11 } },
        { "value": 86.3, "itemStyle": { "color": "#0f6b4c" }, "label": { "show": true, "position": "right", "color": "#17212b", "fontSize": 11 } },
        { "value": 74.5, "itemStyle": { "color": "#075ea8" }, "label": { "show": true, "position": "right", "color": "#17212b", "fontSize": 11 } },
        { "value": 0.8, "itemStyle": { "color": "#075ea8" }, "label": { "show": false } },
        { "value": -1.8, "itemStyle": { "color": "#9a3412" }, "label": { "show": false } },
        { "value": -4.0, "itemStyle": { "color": "#9a3412" }, "label": { "show": false } },
        { "value": -110.2, "itemStyle": { "color": "#9a3412" }, "label": { "show": true, "position": "left", "color": "#17212b", "fontSize": 11 } }
      ],
      "markLine": {
        "silent": true,
        "symbol": "none",
        "lineStyle": { "color": "#6b7280", "width": 1 },
        "data": [{ "xAxis": 0 }]
      }
    }
  ]
}
