Gist 1c6b00cb58b56b12c6eadc7b9c04038d
This example generates histogram data from email event timestamps, showing the relative frequency of events across the 24 hours of the day with values normalized so the busiest hour equals 1. The histogram filters out events tied to recipient email addresses longer than 40 characters, requires at least five valid events, and initializes all 24 hour buckets to zero. The code uses plain JavaScript object properties for the hourly counts and the `toFixed` method to round non-integer normalized values to two decimal places.