brucala / Deneb.jl

Julia API for creating Vega-Lite visualizations
https://brucala.github.io/Deneb.jl/dev/
BSD 3-Clause "New" or "Revised" License
21 stars 1 forks source link

Transform * Facet composition not working #1

Closed brucala closed 1 year ago

brucala commented 1 year ago

In the composition of a Transform with a Facet, the transform disappears:

transform = Transform(
    fold=stations,
    as=[:Station, :snow_depth],
) 
facet = Facet(row=:Station) * Encoding(x="monthdate(date):O")
transform * facet

results in:

{
    "mark": {
      "tooltip": true
    }
  },
  "spec": {
    "encoding": {
      "x": {
        "timeUnit": "monthdate",
        "field": "date",
        "type": "ordinal"
      }
    },
    "width": 500
  },
  "facet": {
    "row": {
      "field": "Station"
    }
  }
}
brucala commented 1 year ago

fixed by https://github.com/brucala/Deneb.jl/commit/23b77fce3e0d794228b276ccc641c68bd5c35edf