我正在尝试从这张Vega-lite世界地图中删除南极洲。 vega编辑器here中的示例。想知道如何在不包含国家或大洲的情况下掌握特定数据
答案 0 :(得分:2)
使用过滤器转换:
{
"name": "world", // <---- Your map
"url": "https://vega.github.io/editor/data/world-110m.json",
"format": {
"type": "topojson",
"feature": "countries"
},
"transform": [
{
"type": "filter",
"expr":"datum.id!=10" //<---- Antarctica has id 10
}
]
},