Keen.IO - Bucketing results by numeric value rather than time / Histogram

35 views Asked by At

Working with the Keen.io API, I have an event with a numeric parameter, and would like to bucketize the results over the range of values of the parameter. For example, session-duration: I'd like to count the number of session durations which occur in each of say 20 buckets over the range of the values. Another way to look at this would be to produce a histogram of data.

1

There are 1 answers

0
jandwiches On

There's a histogram recipe that could be adapted to create the buckets over a range view that you're looking for. The recipe uses Keen IO’s JavaScript data visualization library:

The code is located in this GitHub gist: https://gist.github.com/dustinlarimer/6b928c48abf803109ede.