Overview Chart on Trends view

.. updated the overview chart to support trend view and summarise
   a season or date range.

.. scope now meaningful in the item registry.

.. added a new TopNOverviewItem to view a ranked list of activities
   by metric.

.. updated sparkline to plot variable range (>30days)

.. sort and multisort datafilter functions adjusted as caused a
   SEGV during testing (sorry not in separate commit).
This commit is contained in:
Mark Liversedge
2020-06-13 10:10:31 +01:00
parent 04b4d945fa
commit dbecc005b5
16 changed files with 869 additions and 166 deletions

View File

@@ -76,8 +76,9 @@ GcWindowRegistry* GcWindows;
void
GcWindowRegistry::initialize()
{
static GcWindowRegistry GcWindowsInit[35] = {
static GcWindowRegistry GcWindowsInit[36] = {
// name GcWinID
{ VIEW_HOME|VIEW_DIARY, tr("Overview "),GcWindowTypes::OverviewTrends },
{ VIEW_HOME|VIEW_DIARY, tr("User Chart"),GcWindowTypes::UserTrends },
{ VIEW_HOME|VIEW_DIARY, tr("Trends"),GcWindowTypes::LTM },
{ VIEW_HOME|VIEW_DIARY, tr("TreeMap"),GcWindowTypes::TreeMap },
@@ -243,8 +244,10 @@ GcWindowRegistry::newGcWindow(GcWinID id, Context *context)
case GcWindowTypes::RouteSegment: returning = new GcChartWindow(context); break;
#endif
#if GC_HAVE_OVERVIEW
case GcWindowTypes::Overview: returning = new OverviewWindow(context); break;
case GcWindowTypes::Overview: returning = new OverviewWindow(context, ANALYSIS); break;
case GcWindowTypes::OverviewTrends: returning = new OverviewWindow(context, TRENDS); break;
#else
case GcWindowTypes::OverviewTrends:
case GcWindowTypes::Overview: returning = new GcChartWindow(context); break;
#endif
case GcWindowTypes::SeasonPlan: returning = new PlanningWindow(context); break;