简体   繁体   English

Deneb Vega Lite Map 不显示

[英]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. 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. Does anyone know what I am doing wrong?有谁知道我做错了什么?

{
  "$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"}
      }
    }
  ]
}

This is the data I am using https://www.matthewproctor.com/australian_postcodes这是我使用的数据https://www.matthewproctor.com/australian_postcodes

Any help would be appreciated.任何帮助,将不胜感激。

Cheers,干杯,

Chris克里斯

Looks like you're trying to load your map layer from a remote URL.看起来您正在尝试从远程 URL 加载 map 层。 Because Deneb in AppSource is certified, it's not permitted to load data from external URLs.因为 AppSource 中的 Deneb 是经过认证的,所以不允许从外部 URL 加载数据。 You can work around this with the standalone version, which is download able from the GitHub repository - documentation here您可以使用独立版本解决此问题,该版本可从 GitHub 存储库下载 - 此处的文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM