Skip to content

Separate Y-axes for two marks, scaling rectangles, or computing relative counts #606

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

You must be logged in to vote

Having separate y-axes is not an option at this point. The underlying Plot library does not support dual-axis charts so there is no underlying mechanism for this.

That leaves scaling / normalization as an option. Unfortunately, there is not (at present) a clean way to dynamically normalize values relative to a selection. One option is to include a scalar subquery (as in the normalized stock price example), but this won't incorporate the current selection criteria.

What we really want is to take the generated query, then normalize the results. We might either do this in browser or push it to the database (e.g., by taking the mark query and wrapping it within a larger query). But either way…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@jheer
Comment options

@declann
Comment options

@jheer
Comment options

@declann
Comment options

Answer selected by bbollen23
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants