-
Notifications
You must be signed in to change notification settings - Fork 591
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace data with stats in vl.toVegaSpec
#57
Comments
The 'fieldname' should be aggr_fieldname right?E.g., sum_profit — On Fri, Dec 12, 2014 at 4:11 PM, Dominik Moritz notifications@github.com
|
why? |
Suppose we still allow casting binned For clarity, I will explain why In that case, having
However, we still need to to go through the input to really get # of unique bins:
But the # of unique bin is actually cardinality of the new derived column from binning. |
Okay, if we don't want to show empty in, then I agree with your first point about min and max not being sufficient. But in that case we will just use the cardinality of the query result. I do not agree with your second point because if we have only a small number of non-empty (is that what you mean by unique?) bins, then we might want to make them smaller. But let's maybe not worry about this case for now and just use the cardinality of the query result as you said. |
If we don't hide empty bins, we should not cast the data to be ordinal because ordinal scale would not know about empty bins. (It just use the output from binning fn as ordinal). In the case the we keep the binned
Yeah
make what smaller? (what is them?) |
Well, the binning function could return empty bins as well (maybe need to refactor code to support this, though). them is the bins. Assume we have very dense regions, then we might want more bins because a lot of the bins are empty. This way we have a not so small number of non-empty bins. Okay, let's go with the simplest version first. We only put min and max in the stats and if the user chooses O, we just take the cardinality of the query result but not change the bin size. |
Ok. The simplest version didn't even need But you should go ahead and implement |
Well, we need min and max to calculate optimal bin sizes. I'm working on the stats part. |
The text was updated successfully, but these errors were encountered: