Closed avillafiorita closed 1 year ago
Hi @avillafiorita, you'll want to pass each layer as a hash rather than a Vite.lite
object.
... and, in fact, a Hash works fine! thanks for the help!
For the sake of documentation, the example becomes:
layer([
{
mark: "bar"
},
{
mark: {
type: "text",
align: "left",
baseline: "middle",
dx: 3
},
encoding: {
text: { field: "b", type: "quantitative" }
}
}
])
Hi, first of all, thanks for the Gem, really clean and useful.
I am trying to use =layer=s and I am a bit lost on what to pass as argument. I tried to look at the code, to no avail.
Consider the following excerpt (from the Vega Light website):
when representing in Ruby, I thought I could do something like:
but it does not work.
Any help really appreciated it. Thanks again!