[英]Deneb Vega Lite Map not displaying
I am using the deneb visualisation in PowerBI and I am trying to create a map of Australia, there aren't any errors coming up with the below json code but my map is not displaying. 有谁知道我做错了什么?
{
"$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"}
}
}
]
}
这是我使用的数据https://www.matthewproctor.com/australian_postcodes
任何帮助,将不胜感激。
干杯,
克里斯
看起来您正在尝试从远程 URL 加载 map 层。 因为 AppSource 中的 Deneb 是经过认证的,所以不允许从外部 URL 加载数据。 您可以使用独立版本解决此问题,该版本可从 GitHub 存储库下载 - 此处的文档
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.