Facet view wrapped

Source code Author

using Deneb

data = Data(url="https://vega.github.io/vega-datasets/data/movies.json")

chart = Data(data) * Mark(:point) * Facet(
    "MPAA Rating", type=:ordinal, columns=3
) * Encoding(
    x=field("Worldwide Gross:Q"),
    y="US DVD Sales:Q",
)

facet as encoding channel

chart = Data(data) * Mark(:point) * Encoding(
    x=field("Worldwide Gross:Q"),
    y="US DVD Sales:Q",
    facet=field("MPAA Rating", type=:ordinal, columns=3),
)

This page was generated using DemoCards.jl and Literate.jl.