You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I was wondering if there was any way I could group and count distinct values. Something I could achieve using the following in vega-lite: vl.y().distinct
The text was updated successfully, but these errors were encountered:
You can create your own reducer, for example in https://observablehq.com/@fil/plot-count-distinct we read species in "y" and count the number of distinct values with (series) => new Set(series).length.
It could be nice to have a shorthand reducer for this, maybe { y: "distinct" }.
Hi,
I was wondering if there was any way I could group and count distinct values. Something I could achieve using the following in vega-lite:
vl.y().distinct
The text was updated successfully, but these errors were encountered: