我正在使用PowerBI中的deneb可视化,我试图创建一个澳大利亚地图,没有任何错误出现在下面的json代码,但我的地图没有显示。有人知道我做错了什么吗?
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"width": 500,
"height": 300,
"layer": [
{
"transform": [
{"filter": "isValid(datum.id)"},
{
"lookup": "id",
"from": {
"data": {
"url": "https://raw.githubusercontent.com/cartdeco/Australia-json-data/master/aus25fgd_r.topojson",
"format": {
"type": "topojson"
}
},
"key": "id"
},
"as": "geo"
}
],
"projection": {
"type": "mercator"
},
"mark": {
"type": "geoshape",
"fill": "lightgray",
"stroke": "white"
}
},
{
"data": {"name": "Electorate"},
"projection": {
"type": "mercator"
},
"mark": "circle",
"encoding": {
"longitude": {
"field": "Long",
"type": "quantitative"
},
"latitude": {
"field": "Lat",
"type": "quantitative"
},
"size": {"value": 10},
"color": {"value": "steelblue"}
}
}
]
}这是我使用邮编的数据
任何帮助都将不胜感激。
干杯,
克里斯
发布于 2022-05-03 10:46:14
看起来您正在尝试从远程URL加载您的地图层。因为AppSource中的Deneb是经过认证的,所以不允许从外部URL加载数据。您可以使用独立版本来解决这个问题,该版本可以从GitHub存储库- 这里的文件下载。
https://stackoverflow.com/questions/72094667
复制相似问题