private PlotModel GetModel()
        {
            var monthlyExpenses = monthlyExpensesDataProvider.GetValues(StartDate, EndDate);

            var model = new PlotModel
            {
                Background = OxyColors.Black,
                TextColor  = OxyColors.White
            };

            var columnSeries = new ColumnSeries();
            var axe          = new CategoryAxis
            {
                AxislineColor = OxyColors.White,
                TextColor     = OxyColors.White,
                IsPanEnabled  = false,
                IsZoomEnabled = false,
                Angle         = 45
            };

            foreach (var statisticItem in monthlyExpenses)
            {
                columnSeries.Items.Add(new ColumnItem(statisticItem.Value)
                {
                    Color = graphColor
                });
                axe.Labels.Add(statisticItem.Label);
            }

            model.Axes.Add(axe);
            model.Series.Add(columnSeries);
            return(model);
        }
        private PlotModel GetModel()
        {
            var monthlyExpenses = monthlyExpensesDataProvider.GetValues(StartDate, EndDate);

            //TODO: refactor this into an helper class
            var model = new PlotModel();

            var columnSeries = new ColumnSeries();
            var axe          = new CategoryAxis
            {
                IsPanEnabled  = false,
                IsZoomEnabled = false,
                Angle         = 45
            };

            if (settingsManager.IsDarkThemeSelected)
            {
                model.Background = OxyColors.Black;
                model.TextColor  = OxyColors.White;

                axe.AxislineColor = OxyColors.White;
                axe.TextColor     = OxyColors.White;
            }
            else
            {
                model.Background  = OxyColors.White;
                model.TextColor   = OxyColors.Black;
                axe.AxislineColor = OxyColors.Black;
                axe.TextColor     = OxyColors.Black;
            }

            foreach (var statisticItem in monthlyExpenses)
            {
                columnSeries.Items.Add(new ColumnItem(statisticItem.Value)
                {
                    Color = graphColor
                });
                axe.Labels.Add(statisticItem.Label);
            }

            model.Axes.Add(axe);
            model.Series.Add(columnSeries);
            return(model);
        }