VegaLite: Facet plot with errorband

This works for me (VegaLite 1.0.0):

df |>
@vlplot(
    facet={column={field="Cat1", type="nominal"}}
) + 
(
    @vlplot(x="Week:q",color="Cat2:n") + 
    @vlplot(mark={:errorband, extent=:ci},y="Value:q") + 
    @vlplot(:line,y="mean(Value)")
)

image

1 Like