{
  "data": [
    {
      "transform": [
        {
          "type": "project",
          "fields": [
            {
              "signal": "axeLegendPath"
            },
            {
              "signal": "axeUnitPath"
            }
          ],
          "as": [
            "axeLegend",
            "axeUnit"
          ]
        }
      ]
    }
  ],
  "marks": [
    {
      "axes": [
        {},
        {
          "grid": true,
          "title": {"signal":  "data('legend')[0].axeLegend"},
          "encode": {
            "labels": {
              "update": {
                "text":  {"signal": "datum.value + ' ' + data('legend')[0].axeUnit"}
              }
            }
          }
        }
      ]
    }
  ]
}
