public FileResult CurrentWOAverages()
        {
            var CurrentWOData = new WOData(WOMetricType.CurrentWOAvgDaysOpenByCategory, 1);
            CurrentWOData.CollectionDataName = "Current";
            var WOChart = new WOChart(WOChartType.Single, CurrentWOData, "Current WO Avg Days Open By Category");

            return (File(WOChart.chartStream.GetBuffer(), @"image/png"));
        }
        public FileResult CurrentWOAvgPerformance()
        {
            var CurrentWOData = new WOData(WOMetricType.CurrentWOAvgDaysOpenByCategory, 10, true);
            CurrentWOData.AlignSeriesDataSetsByDate();
            var WOChart = new WOChart(WOChartType.Performance, CurrentWOData, "Current WO Avg Days Open Performance");

            return (File(WOChart.chartStream.GetBuffer(), @"image/png"));
        }
        public FileResult AnnualWOAverages()
        {
            var AnnualWOData = new WOData(WOMetricType.AnnualWOAvgDaysOpenByCategory, 1);
            AnnualWOData.CollectionDataName = "History";
            var WOChart = new WOChart(WOChartType.Single, AnnualWOData, "Annual WO Avg Days Open By Category");

            return (File(WOChart.chartStream.GetBuffer(), @"image/png"));
        }
        public FileResult WOAvgCurrentToAnnualComparison()
        {
            var CurrentWOData = new WOData(WOMetricType.CurrentWOAvgDaysOpenByCategory, 1);
            var AnnualWOData = new WOData(WOMetricType.AnnualWOAvgDaysOpenByCategory, 1);
            var CombinedData = new WOData();

            CombinedData.CollectionData.AddRange(CurrentWOData.CollectionData);
            CombinedData.CollectionDataName = "Current"; //displays on the legend...
            CombinedData.CollectionComparisonData.AddRange(AnnualWOData.CollectionData);
            CombinedData.ComparisonDataName = "History";
            CombinedData.AlignComparisonDataSets();

            var WOChart = new WOChart(WOChartType.Comparison, CombinedData, "Current to History WO Avg Days Open Comparison");

            return (File(WOChart.chartStream.GetBuffer(), @"image/png"));
        }