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

Vega-Lite angle mark property channel is not rendered correctly in ElectronDisplay.jl #88

Open
lassepe opened this issue Feb 9, 2021 · 2 comments

Comments

@lassepe
Copy link

lassepe commented Feb 9, 2021

Similar to #83, I'm not sure whether this considere a VegaLite.jl bug or EletronDisplay.jl bug. Please move this issue to VegaLite.jl if you think it is more suitably hosted there.

When trying to reproduce the Wind Vector Map Example in VegaLite.jl I noticed that the angle property is not rendered correctly in ElectronDisplay.jl.

This code can be used to reproduce the issue:

using VegaLite: @vlplot
import VegaDatasets

data = VegaDatasets.dataset("windvectors")

data |> @vlplot(
    mark = {:point, shape = "wedge", filled = true, size = 1000} ,
    longitude = {:longitude, type = "quantitative",},
    latitude = {:latitude, type = "quantitative"},
    color = {
        :dir,
        type = "quantitative",
        scale = {domain = [0, 360], scheme = "rainbow"},
        legend = nothing,
    },
    angle = {:dir, type = "quantitative", scale = {domain = [0, 360], range = [180, 540]}},
    size = {:speed, scale = {range = [50, 500]}},
    width = 1000,
    height = 1000,
    config = {aria = false, view = {step = 10, fill = "black"}}
)

In Chrome/Chromium/Firefox this correctly renders the wind map:
image

Whey displayed via ElectronDisplay.jl the same code yields a plot that ignores the angle property channel:

visualization

@davidanthoff
Copy link
Member

I think the problem is that we haven't updated the version of vega-lite that we ship in ElectronDisplay.jl in a while... I'll try and see whether we can somewhat easily update!

@lassepe
Copy link
Author

lassepe commented Mar 13, 2021

Thank you for your help! I was not aware that ElectroDisplay.jl ships it's own vega-lite version. I had always assumed it would just download it and work essentialy the same way as a browser.

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