vega-lite
vega-lite copied to clipboard
Escaping \\ with \\\\ not working
I understand I have to escape a single \
with \\\\
but even after doing that I am receiving a an empty chart but no error or warning! Not sure where I am going wrong.
See here for an example editor or copy
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"mark": {"type": "bar", "tooltip": true},
"encoding": {
"x": {"field": "x", "type": "ordinal", "axis": {"title": "Location"}},
"y": {
"field": "store_i \\\\",
"type": "quantitative",
"axis": {"title": "store"}
}
},
"height": "container",
"width": "container",
"data": {
"values": [
{"x": "Blackpool", "store_i \\": 9},
{"x": "Blackpool", "store_i \\": 10},
{"x": "Blackpool", "store_i \\": 11},
{"x": "Blackpool", "store_i \\": 12},
{"x": "Edinburgh", "store_i \\": 6},
{"x": "Edinburgh", "store_i \\": 7},
{"x": "Edinburgh", "store_i \\": 8},
{"x": "London", "store_i \\": 1},
{"x": "London", "store_i \\": 2},
{"x": "London", "store_i \\": 3},
{"x": "London", "store_i \\": 4},
{"x": "London", "store_i \\": 5},
{"x": "Manchester", "store_i \\": 13},
{"x": "Manchester", "store_i \\": 14},
{"x": "Manchester", "store_i \\": 15}
]
}
}
@domoritz Hi, I have also encountered a similar problem. Is there any progress about fixing this bug?