steelblue' },
                fillOpacity: { value: 0.25 }
              }
            }
          }
        ]
      };
    }

    function bar(data) {
      return {
        "$schema": "https://vega.github.io/schema/vega/v5.json",
        "description": "A basic stacked bar chart example.",
        "width": 500,
        "height": 200,
        "padding": 5,

        "data": [
          {
            "name": "table",
            "values": data,
            "transform": [
              {
                "type