vega / polestar

Lightweight Tableau-style interface for visual analysis, built on Vega-lite.
http://vega.github.io/polestar
Other
367 stars 47 forks source link

Allow sort when there is 1-to-1 mapping between N and Q? #372

Closed light-and-salt closed 7 years ago

light-and-salt commented 8 years ago

raw

Right now if you have a scatterplot of a nominal field (N) and a quantitative field (Q), we do not show the sort button unless the quantitative field has aggregation.

I understand why this is the case, because a nominal value could map to more than one quantitative values (e.g., in the picture above, a car name can be associated with multiple acceleration values). It doesn't make sense in this case to sort by the quantitative field as there are multiple Q values for each N value, but I think it still makes sense to sort by the nominal field (i.e., sort by car names, A-Z, Z-A).

Further, if each N value only maps to one Q value, then sorting on the Q field (increasing, decreasing) will also make sense.

kanitw commented 8 years ago

This seems less important. Filed to "later" milestone.