private LayoutChoice_Set plot() { // sort activities by their discovery date // make a plot PlotView plotView = new PlotView(); List <Datapoint> activitiesDatapoints = this.getDatapoints(this.activityDatabase.AllActivities); plotView.AddSeries(activitiesDatapoints, false); List <Datapoint> categoriesDatapoints = this.getDatapoints(this.activityDatabase.AllCategories); plotView.AddSeries(categoriesDatapoints, false); // add tick marks for years if (activitiesDatapoints.Count > 0) { plotView.XAxisSubdivisions = TimeProgression.AbsoluteTime.GetNaturalSubdivisions(activitiesDatapoints[0].Input, activitiesDatapoints[activitiesDatapoints.Count - 1].Input); } // add description string todayText = DateTime.Now.ToString("yyyy-MM-dd"); LayoutChoice_Set result = new Vertical_GridLayout_Builder() .AddLayout(new TextblockLayout("Number of activities over time")) .AddLayout(new ImageLayout(plotView, LayoutScore.Get_UsedSpace_LayoutScore(1))) .AddLayout(new TextblockLayout("You have " + activitiesDatapoints.Count + " activities, " + categoriesDatapoints.Count + " of which are categories. Today is " + todayText)) .BuildAnyLayout(); return(result); }