Closed markuspeters closed 2 months ago
sort
is currently Option[String]
. In this case, you want to pass an array. We may need to chnage sort
to JsValue
. Yes, your PR is very welcome. Thanks!
I have revised the API to take JsValue
for sort
and a few other simplifications. Will push to master soon.
Thank you for handling this, I appreciate the quick change!
Note that we remove unnecessary factory methods taking data parameter. VegaLite.view()/facet()
now take optional title
parameter. Call data()
methods to specify data source or inline data.
In smile-scala 3.1.0 this:
is converted to the following encoding channel spec:
The escaped JsString for
sort
in the spec above should instead be a JsArray of JsStrings, i.e.:I'll be happy to try submit a PR if that seems useful.