microsoft / SandDance

Visually explore, understand, and present your data.
https://microsoft.github.io/SandDance
MIT License
6.27k stars 516 forks source link

error loading topojson #364

Open eriktuck opened 2 years ago

eriktuck commented 2 years ago

The web application is returning an error when attempting to load topojson files. The file in question can be viewed here and appears to be formatted correctly (at least GitHub can render it in the browser). There are 340 features with one attribute per feature, so I don't think size is the issue.

danmarshall commented 2 years ago

Looks like our app needs to provide either the feature or mesh property: https://vega.github.io/vega/docs/data/#format

Can you try this example in the Vega editor: https://vega.github.io/editor/#/url/vega/N4IgJAzgxgFgpgWwIYgFwhgF0wBwqgegIDc4BzJAOjIEtMYBXAI0poHsDp5kTykSArJQBWENgDsQAGhAATJJhSoA2qHFIEcNCBricDTNJAAzNgCdkh1KEwBPHFvSY2ONqIlHjcBQzOOQAPwBIAC+Mr4ANtpYuPhEtBCY1HSMTAwQcGZQEphw4knZCATe4rKZYuIAtHA0BAIADADMxgBsLUgtjQCMACwtcADsAlA9SAKyI-UAnMY9XbIDXQBMABwEZkgA7gRQTAJwskurjVBdcAL9XUhIU1MDK-WDjSsDS7ItUPWyjVNIUHBdAjIHCUZyudySEIAXRCQA

Here's a related issue: https://github.com/vega/vega/issues/1161

eriktuck commented 2 years ago

The Vega editor link you provided is not showing any output for me. I tried a number of different "features" (objects, collections, geometries, arcs, GeometryCollection) but none worked.

danmarshall commented 2 years ago

That example doesn't have any visual output, sorry. If you open the JavaScript console you may see the Vega warning.