Description Usage Arguments Details Value
Combines a previous intermediate object with the information contained in new events to generate an updated intermediate object and the corresponding aggregate list for plotting.
1 | generate_aggregate(json_events_intermediate)
|
json_events_intermediate |
a json string (see details below) |
The json_events_intermediate is a json object that must contain
"new_events"
(a json string) and "intermediate"
(a json string).
The "new_events"
json string is an array of
objects (set of name/value pairs). The name/value pairs must contain the following
objects:
user,
name,
email,
date,
type,
percentage,
url,
title,
profile
and has the following structure:
{"user":"22","name":"John Doe","title":"Unit 1: Phrasal verbs", ...}
The "intermediate"
json string is a object (set of name/value pairs),
the names are "last_event", "visited_units", "users", "visitors",
"user_url_time" and "daily_effort".
The function returns a list with two elements:
intermediate
is a list that contains the following objects
"last_event"
"visited_units"
"users"
"visitors"
"user_url_time"
"daily_effort"
aggregate
which is a list that contains the following objects
"number_visited_units"
"number_users"
"users"
"visited_completed_units"
"user_url_visited_completed"
"user_url_time_percentage"
"percentage_user_wide"
"time_user_wide"
"objectives_quartiles"
"list_paths"
"daily_effort"
a list with two elements: "updated_intermediate"
and
"aggregate"
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.