EDIT: changed in title from "different time-intervals" to "different time-interval lengths"
I would like to display a time-series graph of the percentage of users to whom an event occurred.
This means: the number of users to whom an event occurred during a time interval, divided by the number of "active users" - users who were mentioned in the logs in the 7 days prior to that interval.
The first part: .es(q='event:some_event_name', metrics=cardinality:user.keyword)
The seconds part: .es(metrics=cardinality:user.keyword)
The time-intervals should obviously differ.
Is there a way to display this?