learningequality/ka-lite — pull request #600 by rtibbles (2013-08-29 07:46:22+00:00)
Title: Reinstating and fixing all coach report stats, and enabling User Log stats when enabled

This pull request returns the functionality that was removed during the transition to d3.

Now all listed stats are available, and work correctly in rendering.

The timeline coach report now only lists stats that can actually be calculated at each time point.

As there is only one stat that makes sense for each time point, this is now automatically selected based on the selection for the time on the X-axis.

When User Activity Logs are available, the summary log data is available as an axis in the scatter coach report, and the non-synced device data is available on the timeline report.

For the timeline report, the topic tree is unnecessary, but no obvious flow for removing that when directly linking to this report is evident (allowing the tree to be collapsed with no items selected could also be helpful in this instance).

I am confident that this code is functioning as intended, but it does not have the best user experience.