The following examples are all measurements of objects across the entire LRS. These widgets do not focus on students, pages, interactions, or media. Each of the widgets represents either out-of-the-box (OOTB) metrics built-in to the LRS, or practical metrics our customers asked for. You can find the OOTB metrics in the LRS Overview dashboard of your LRS. For some of these examples, you can often use the regular Chart Builder to assemble an approximately similar widget.
We've collapsed some of the whitespace in the JSON in this article, to make it easier to read.
Activity Over Time
How is total traffic to this store changing over time? The LRS hides this OOTB widget if it has no data for the selected period. Although it looks like two series, it’s really two views of the same, single series. You can drag the handles on either side of the upper view to scale (zoom and pan) the lower view, a different time interval. The vertical axis is a count of statements in the selected store at each timestamp. Taller spikes show more activity on that day.
In timeseries charts, the LRS skips intervening nulls, and plots an area connecting the top of each timestamp, which estimates activity between values in the x-axis.
{ "title": "Activity over time",
"subtitle": "How is <b>total traffic</b> to this LRS changing over time?",
"filter": {},
"process": [{
"$timeSeries": {
"path": "timestamp",
"span": "daily"}}, {
"$serialChart": {}}]}
Weekly Traffic
For the top ten activities, what days of the week are they most often accessed? The LRS hides this OOTB widget if it has no data for the selected period. This is a
heatmap chart. The horizontal axis is time but divided into days of the week. The vertical axis is several (up to ten) objects. The axes define a table with each cell filled with color intensity standing for the total count of statements on that day for that object. Darker cells show more activity on that day for that object. The gradient bar across the bottom is a legend showing frequency as an increase in color saturation: the scale runs to the highest calculated value.

{ "title": "Weekly Traffic",
"subtitle": "For the top 10 activities, what days of the week are they <b>most frequently</b> accessed?",
"filter": {},
"process": [{
"$frequentValues": {"path": "object.id", "limit": 6}}, {
"$query": {
"filter": {
"object.id": {"$each": {"$input": {"path": "$[*]._id", "mode": "all"}}}},
"process": [{
"$punchCard": {
"path": "timestamp"}}, {
"$group": {
"_id": "$day",
"dayOfWeek": {"$last": "$dayOfWeek"},
"count": {"$sum": "$count"},
"bar": {"$avg": 1}}}, {
"$addFields": {
"name": {"$context": {"path": "$.filter['object.id']"}}}}]}}, {
"$mergeArrays": {}}, {
"$sort": {"_id": 1}}, {
"$toCanonicalDisplay": {"path": "name"}}, {
"$project": {
"_id": "$dayOfWeek",
"name": "$canonical.display",
"activity": "$name",
"count": "$count"}}, {
"$heatChart": {
"categoryPathX": "_id",
"categoryPathY": "name",
"valuePath": "count",
"maxColor": "#00bbbb",
"minColor": "#FFF",
"linkIdPath": "activity",
"linkTitlePath": "name",
"itemType": "activity"}}]}
Traffic, All Courses
If you filter by parent context of type “course”, you can compare courses to each other by the count of unique students per day. This chart sorts the courses by name. For each course, this chart subtracts the latest timestamp from the first to calculate its age, in milliseconds, and converts it to days. It then shows the number of students over that period. A taller bar means more traffic, in students per day, for that course.

{ "title": "Traffic",
"subtitle": "Filtered by Parent ID",
"filter": {
"meta.parent.definition.type": "http://adlnet.gov/expapi/activities/course"},
"process": [{
"$frequentValues": {
"path": "meta.parent.id",
"limit": 40,
"metrics": {
"first": {"$min": "timestamp"},
"last": {"$max": "timestamp"},
"students": {"$range": "actor.id"}},
"sort": null}}, {
"$toCanonicalDisplay": {"forceUnique": false}}, {
"$addFields": {
"value": {
"$multiply": [{"$divide": ["$students", {"$subtract": ["$last", "$first"]}]}, 86400000]}}}, {
"$barChart": {
"categoryPath": "canonical.display",
"valuePath": "value",
"sortCategory": true}}, {
"$addFields": {
"chart.xAxes.0.renderer.labels": null,
"chart.xAxes.0.renderer.labels.wrap": true,
"chart.xAxes.0.renderer.labels.maxWidth": 120,
"chart.yAxes.0.title.text": "Students/Day",
"chart.series.0.columns.template.tooltipText": "{categoryX} – {valueY.formatNumber('##.#')}",
"chart.theme": {"graphColors": [{"value": "#00BBBB"}]}}}]}
Top Ten Most Active Objects
What objects (courses, lessons, questions...) are used the most, and how often? This is an OOTB widget. Click a pie slice to open that object in the Activity Overview dashboard. Click an item in the legend to hide that pie slice and recalculate the percentages of the remaining slices against the whole. Hover your cursor over a pie slice to reveal a tooltip with the absolute value (count). This chart shows the top ten objects that appear in the most statements , in descending order. A thicker slice means that object appears in more statements than a thinner one.
{ "title": "Recently Active Objects",
"subtitle": "What objects (courses, lessons, questions...) are <b>used the most</b>, and how often were
they used? (Click a pie wedge to focus on the object)",
"filter": {},
"process": [{
"$frequentValues": {
"path": "object.id"}}, {
"$toCanonicalDisplay": {
"path": "_id"}}, {
"$pieChart": {
"categoryPath": "canonical.display",
"itemType": "activity"}}]}Top Ten Most Active Grouping Contexts
What grouping context activities have the most total traffic, including all their child activities? This is an OOTB widget. A grouping is any outer contexts (e.g., course, module, or lesson), while a parent is the innermost context, (e.g., a learning objective, scenario, or quiz bank). A thicker slice shows that grouping appears in more statements than a thinner one.
{ "title": "Most Active Grouping Contexts",
"subtitle": "What grouping context activities have the <b>most total traffic</b>, including all their child
activities?",
"filter": {},
"process": [{
"$frequentValues": {
"path": "context.contextActivities.grouping.id"}}, {
"$unwind":"$_id"}, {
"$toCanonicalDisplay": {
"path": "_id",
"mode": "activity"}}, {
"$pieChart": {
"categoryPath": "canonical.display"}}]}
Top Ten Most Active Parent Contexts
What parent context activities have the most total traffic, including all their child activities? (Click a pie wedge to focus on the parent). This is an OOTB widget. Click a pie slice to open the Activity Overview dashboard for that parent. This widget ranks parent contexts in descending order of total statements for each; plus, all the objects each has. Thicker slices show the context appears in more statements.
{ "title": "Most Active Parent Contexts",
"subtitle": "What parent context activities have the <b>most total traffic</b>, including all
their child activities? (Click a pie wedge to focus on the parent)",
"filter": {},
"process": [{
"$frequentValues": {
"path": "context.contextActivities.parent.id"}}, {
"$unwind":"$_id"}, {
"$toCanonicalDisplay": {
"path": "_id",
"mode": "activity"}}, {
"$pieChart": {
"categoryPath": "canonical.display",
"itemType": "activity"}}]}
Activity Over Time Breakdown, Top Ten Objects
For the top ten activities, how is total traffic on each changing over time? The LRS hides this OOTB widget if it has no data for the selected period. You can scale (zoom and pan) the chart and you can hide each of the series. In a timeseries chart, the widget shows a split series as multiple, overlapping, translucent area charts. Each series in the chart is one of the top ten most “active” objects. Taller spikes show more activity on that day.
{ "title": "Activity Over Time Breakdown",
"subtitle": "For the top 10 activities, how is <b>total traffic</b> on each changing over time?",
"filter": {},
"process": [{
"$frequentValues": {
"path": "object.id",
"metrics":{
"activity":{
"$timeSeries": {
"path": "timestamp",
"span": "daily"}}}}}, {
"$toCanonicalDisplay":{
"path": "_id",
"mode": "activity"}}, {
"$serialChart": {
"categoryPath": "activity[*]._id",
"valuePath": "activity[*].count",
"lineCategory": "canonical.display"}}]}
Usage by Authority
Which access keys were used the most, and how many times? This is an OOTB widget. The authority described in an xAPI statement is the system that emitted the statement: the LMS. Although an LRS can grant access keys to many Learning Record Providers (LRP) in addition to an LMS, the statements for one store and for one parent come from one authority. Thicker slices show the access key appears in more statements.
{ "title": "Usage By Authority",
"subtitle": "Which access keys were <b>used the most</b>, and how many times were they used?",
"filter": {},
"process": [{
"$frequentValues": {
"path": "authority.account.name"}}, {
"$toCanonicalDisplay": {
"path": "_id",
"mode": "agent"}}, {
"$pieChart": {
"categoryPath": "canonical.display"}}]}
We're constantly receiving requests for new charts and metrics: check back often. Or, click the Follow button in the right menu to get email alerts when we update this article.