private void CategoryCountDoughnutChart(string seat)
        {
            SaleModel BurgerSale = StatisticsVM.GetCategoryStatistics("burger", seat);
            SaleModel DesertSale = StatisticsVM.GetCategoryStatistics("desert", seat);
            SaleModel SideSale   = StatisticsVM.GetCategoryStatistics("side", seat);

            BurgerCount = BurgerSale.count;
            BurgerPrice = BurgerSale.price;
            DesertCount = DesertSale.count;
            DesertPrice = DesertSale.price;
            SideCount   = SideSale.count;
            SidePrice   = SideSale.price;

            CategoryCountSeriesCollection = new SeriesCollection();

            if (BurgerCount != 0)
            {
                CategoryCountSeriesCollection.Add(new PieSeries
                {
                    Title  = "Burger",
                    Values = new ChartValues <double> {
                        BurgerCount
                    },
                    DataLabels = true,
                    LabelPoint = point => point.Y + "개",
                    Fill       = Brushes.MediumPurple
                });
            }

            if (DesertCount != 0)
            {
                CategoryCountSeriesCollection.Add(new PieSeries
                {
                    Title  = "Desert",
                    Values = new ChartValues <double> {
                        DesertCount
                    },
                    DataLabels = true,
                    LabelPoint = point => point.Y + "개",
                    Fill       = Brushes.IndianRed
                });
            }

            if (SideCount != 0)
            {
                CategoryCountSeriesCollection.Add(new PieSeries
                {
                    Title  = "Side",
                    Values = new ChartValues <double> {
                        SideCount
                    },
                    DataLabels = true,
                    LabelPoint = point => point.Y + "개",
                    Fill       = Brushes.RoyalBlue
                });
            }

            CategoryPriceSeriesCollection = new SeriesCollection();

            if (BurgerPrice != 0)
            {
                CategoryPriceSeriesCollection.Add(new PieSeries
                {
                    Title  = "Burger",
                    Values = new ChartValues <double> {
                        BurgerPrice
                    },
                    DataLabels = true,
                    LabelPoint = point => point.Y + "원",
                    Fill       = Brushes.MediumPurple
                });
            }

            if (DesertPrice != 0)
            {
                CategoryPriceSeriesCollection.Add(new PieSeries
                {
                    Title  = "Price",
                    Values = new ChartValues <double> {
                        DesertPrice
                    },
                    DataLabels = true,
                    LabelPoint = point => point.Y + "원",
                    Fill       = Brushes.IndianRed
                });
            }

            if (SidePrice != 0)
            {
                CategoryPriceSeriesCollection.Add(new PieSeries
                {
                    Title  = "Side",
                    Values = new ChartValues <double> {
                        SidePrice
                    },
                    DataLabels = true,
                    LabelPoint = point => point.Y + "원",
                    Fill       = Brushes.RoyalBlue
                });
            }
        }
        public Category_Chart()
        {
            InitializeComponent();

            SaleModel BurgerSale = StatisticsVM.GetCategoryStatistics("burger", "0");
            SaleModel DesertSale = StatisticsVM.GetCategoryStatistics("desert", "0");
            SaleModel SideSale   = StatisticsVM.GetCategoryStatistics("side", "0");

            BurgerCount = BurgerSale.count;
            BurgerPrice = BurgerSale.price;
            DesertCount = DesertSale.count;
            DesertPrice = DesertSale.price;
            SideCount   = SideSale.count;
            SidePrice   = SideSale.price;

            CategoryCountSeriesCollection = new SeriesCollection();

            if (BurgerCount != 0)
            {
                CategoryCountSeriesCollection.Add(new PieSeries
                {
                    Title  = "Burger",
                    Values = new ChartValues <double> {
                        BurgerCount
                    },
                    DataLabels = true,
                    LabelPoint = point => point.Y + "개",
                    Fill       = Brushes.MediumPurple
                });
            }

            if (DesertCount != 0)
            {
                CategoryCountSeriesCollection.Add(new PieSeries
                {
                    Title  = "Desert",
                    Values = new ChartValues <double> {
                        DesertCount
                    },
                    DataLabels = true,
                    LabelPoint = point => point.Y + "개",
                    Fill       = Brushes.IndianRed
                });
            }

            if (SideCount != 0)
            {
                CategoryCountSeriesCollection.Add(new PieSeries
                {
                    Title  = "Side",
                    Values = new ChartValues <double> {
                        SideCount
                    },
                    DataLabels = true,
                    LabelPoint = point => point.Y + "개",
                    Fill       = Brushes.RoyalBlue
                });
            }

            CategoryPriceSeriesCollection = new SeriesCollection();

            if (BurgerPrice != 0)
            {
                CategoryPriceSeriesCollection.Add(new PieSeries
                {
                    Title  = "Burger",
                    Values = new ChartValues <double> {
                        BurgerPrice
                    },
                    DataLabels = true,
                    LabelPoint = point => point.Y + "원",
                    Fill       = Brushes.MediumPurple
                });
            }

            if (DesertPrice != 0)
            {
                CategoryPriceSeriesCollection.Add(new PieSeries
                {
                    Title  = "Price",
                    Values = new ChartValues <double> {
                        DesertPrice
                    },
                    DataLabels = true,
                    LabelPoint = point => point.Y + "원",
                    Fill       = Brushes.IndianRed
                });
            }

            if (SidePrice != 0)
            {
                CategoryPriceSeriesCollection.Add(new PieSeries
                {
                    Title  = "Side",
                    Values = new ChartValues <double> {
                        SidePrice
                    },
                    DataLabels = true,
                    LabelPoint = point => point.Y + "원",
                    Fill       = Brushes.RoyalBlue
                });
            }

            DataContext = this;
        }