-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Labels
Description
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:
Whey displayed via ElectronDisplay.jl the same code yields a plot that ignores the angle property channel: