Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incomplete copy #37

Open
tomyun opened this issue Apr 1, 2020 · 1 comment
Open

Incomplete copy #37

tomyun opened this issue Apr 1, 2020 · 1 comment

Comments

@tomyun
Copy link

tomyun commented Apr 1, 2020

using VegaDatasets, DataVoyager, VegaLite
v = dataset("cars") |> Voyager()

I clicked copy button to get a vegalite specification of the plot, then the content is incomplete as below. It's missing almost all information needed to reproduce the same plot.

{
  "data": {
    "name": "source"
  },
  "mark": "point",
  "encoding": {
    "x": {
      "field": "Miles_per_Gallon",
      "type": "quantitative",
      "scale": {}
    },
    "y": {
      "field": "Horsepower",
      "type": "quantitative",
      "scale": {}
    }
  },
  "config": {
    "overlay": {
      "line": true
    },
    "scale": {
      "useUnaggregatedDomain": true
    }
  }
}

By the way, if I directly save the file as below, it then has all necessary data intact so that can be loaded up in i.e. Vega Editor.

v[] |> save("figure1.vegalite")

I use DataVoyager v1.0.0 and VegaLite v2.0.1 on macOS.

julia> versioninfo()
Julia Version 1.4.0
Commit b8e9a9ecc6 (2020-03-21 16:36 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin18.6.0)
  CPU: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-8.0.1 (ORCJIT, haswell)
@davidanthoff
Copy link
Member

I guess it is just missing the actual data, right?

There is not much we can do on that front, the copy functionality is in the Voyager JavaScript code that we just repackage (the original is at https://github.com/vega/voyager).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants