My attempt to plot area shapes using vega-lite is resulting in the following warning message.
[Warning] Dropping {"type":"geojson"} from channel "shape" since it does not contain any data field, datum, value, or signal.
The data is loading successfully, as I can view it in the vega-lite editor/viewer, and I have provided sample records below and in the link to the vega-lite snippet.
The issue seems to be related to correctly pointing to the fields in the data.
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {
"values": [
{
"OBJECTID": 4691,
"WD21CD": "E05011118",
"WD21NM": "Acocks Green",
"WD21NMW": " ",
"BNG_E": 412052,
"BNG_N": 282830,
"LONG": -1.8241,
"LAT": 52.4433,
"SHAPE_Length": 0.0924,
"SHAPE_Area": 0.0005,
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[-1.8093, 52.4454],
[-1.8173, 52.4324],
[-1.8253, 52.4293],
[-1.839, 52.4341],
[-1.8355, 52.4382],
[-1.831, 52.4483],
[-1.8345, 52.4522],
[-1.824, 52.4571],
[-1.8139, 52.4547],
[-1.8093, 52.4454]
]
]
]
}
},
{
"OBJECTID": 4692,
"WD21CD": "E05011119",
"WD21NM": "Allens Cross",
"WD21NMW": " ",
"BNG_E": 401463,
"BNG_N": 279538,
"LONG": -1.9799,
"LAT": 52.4138,
"SHAPE_Length": 0.0959,
"SHAPE_Area": 0.0002,
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[-1.9618, 52.4212],
[-1.9717, 52.4163],
[-1.9758, 52.4079],
[-1.9835, 52.4095],
[-1.9978, 52.4097],
[-1.986, 52.4167],
[-1.975, 52.4205],
[-1.9807, 52.4247],
[-1.9754, 52.4268],
[-1.9679, 52.4214],
[-1.9618, 52.4212]
]
]
]
}
}
],
"format": {"type": "json"}
},
"mark": "geoshape",
"encoding": {"shape": {"type": "geojson"}},
"width": 500,
"height": 500
}