Retrieving the aggregated values of an histogram

31 views
Skip to first unread message

Malik Koné

unread,
Mar 17, 2020, 6:37:50 AM3/17/20
to vega-js
Hi,

How can one retrieve the aggregated values of an histogram ?
I achieved what I want in  this d3 observable notebook. On a bar click  the selected variable is updated with the bar's underlying values.

I need to replicate this in vega or vega-lite, with the documentation histogram for example.

I though using an aggregation operator or an expression but I could not find one that returned the underlying liste value.  I'm obviously not taking the right path.  Please guide me.


Malik Koné

unread,
Mar 17, 2020, 6:40:40 AM3/17/20
to vega-js
I'm only able to retrieve the first value of the bin as in this chart excerpt 

Malik Koné

unread,
Mar 17, 2020, 11:13:55 AM3/17/20
to vega-js
I'm looking for the inverse of `flatten`.  The closest would be the `pivot` transform with a `concat` operator.
Reply all
Reply to author
Forward
0 new messages