vega-lite: "Dot" in field name breaks the code
For example, the following spec doesn’t work
{
  "data": {
    "values": [
      {
        "x.a": "A",
        "y": 28
      },
      {
        "x.a": "B",
        "y": 55
      },
      {
        "x.a": "C",
        "y": 43
      },
      {
        "x.a": "D",
        "y": 91
      },
      {
        "x.a": "E",
        "y": 81
      },
      {
        "x.a": "F",
        "y": 53
      },
      {
        "x.a": "G",
        "y": 19
      },
      {
        "x.a": "H",
        "y": 87
      },
      {
        "x.a": "I",
        "y": 52
      }
    ]
  },
  "marktype": "bar",
  "encoding": {
    "y": {
      "type": "Q",
      "name": "y"
    },
    "x": {
      "type": "O",
      "name": "x.a"
    }
  }
}
It throws the following error:

About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 21 (13 by maintainers)
Unfortunately, this would also break how Vega refer to values so we don’t plan to fix this anytime soon.