【发布时间】:2019-05-29 20:52:24
【问题描述】:
我正在尝试从这张 Vega-lite 世界地图中删除南极洲。 vega-editor here 中的示例。想知道如何获取特定国家或大陆的特定数据
【问题讨论】:
我正在尝试从这张 Vega-lite 世界地图中删除南极洲。 vega-editor here 中的示例。想知道如何获取特定国家或大陆的特定数据
【问题讨论】:
使用过滤器转换:
{
"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
}
]
},
【讨论】: