Closed sehilyi closed 5 years ago
for example for (vertical or horizontal) bar chart,
spec.encoding.q.field
is more flexible compare to
spec.encoding[spec.encoding.x.type === "quantitative" ? "x" : "y"].field
for example for (vertical or horizontal) bar chart,
spec.encoding.q.field
is more flexible compare to
spec.encoding[spec.encoding.x.type === "quantitative" ? "x" : "y"].field