ankane / vega-ruby

Interactive charts for Ruby, powered by Vega and Vega-Lite
BSD 3-Clause "New" or "Revised" License
251 stars 9 forks source link

Allow specifying columns #12

Closed northeastprince closed 5 months ago

ankane commented 5 months ago

Hi @northeastprince, thanks for the PR, but I don't see columns in the Vega spec.

northeastprince commented 5 months ago

https://vega.github.io/vega-lite/docs/concat.html#:~:text=the%20%22columns%22%20property

ankane commented 5 months ago

It looks like that's part of Vega Lite (rather than Vega, which is what the PR changes).

northeastprince commented 5 months ago

Fixed @ankane

ankane commented 5 months ago

From the Vega Lite link, it looks like you can also do:

config(concat: {columns: 2})

so I'm not sure an additional method is needed.

northeastprince commented 5 months ago

Unfortunately not @ankane, because columns is a top-level property like concat.