Skip to content

facet: broken shorthand string syntax for encodings #309

Open

Description

This matters as Layer cannot be used with row or column, so must use facet:

# This works
dataset("cars.json") |> @vlplot(
    facet={row={field="Origin", type="nominal"}},
    spec={
        :bar,
        x={"Horsepower:q", bin={maxbins=15}},
        y="count()"

    }
)

# this doesn't
dataset("cars.json") |> @vlplot(
    facet={row="Origin:n"},
    spec={
        :bar,
        x={"Horsepower:q", bin={maxbins=15}},
        y="count()"

    }
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions