public IGraphCreator GetCaloriesComparisonGraph(GraphType graphType, MyFitnessList MyFitnesses, DataSetBuilder dataSetBuilder, int Days)
 {
     int LeftRange;
     List<int[]> caloriesComparison = dataSetBuilder.CaloriesComparison(out LeftRange);
     IGraphCreator Graph = new GoogleChartGraphCreator(caloriesComparison, dataSetBuilder.DateLabels, LeftRange);
     Graph.CreateChart(graphType);
     return Graph;
 }
        public static Image GetCaloriesComparisonBarGraph(this IMyFitnessPalWrapper wrapper)
        {
            DataSetBuilder dataSetBuilder = new DataSetBuilder(wrapper.MyFitnesses, wrapper.Days);

            return wrapper.Graph.GetCaloriesComparisonGraph(GraphType.Bar, wrapper.MyFitnesses, dataSetBuilder, wrapper.Days).GetImage(wrapper.Graph.DefaultGraphOptions);
        }