Skip to content

limited transformations using vgplot #527

Answered by jheer
declann asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Declan, you are correct.

Except for the special case where one passes in JS data directly (and in which case selections are not supported), currently vgplot assumes that it is filtering a named table in the database. Many transformations can be precomputed: create a new table as part of your data prep (e.g., as a table defined by a query in a declarative spec, or an exec query using standard JS) and then have vgplot query that.

As you note, this can break down in some cases where you want a transformation parameterized by a Param or Selection. However, a number of dynamic transformations can be specified using SQL expressions as part of your vgplot spec. Aggregates and binning are obvi…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@declann
Comment options

@declann
Comment options

Answer selected by declann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants