[英]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.