コード例 #1
0
        public StackingLineChartViewModel()
        {
            this.MonthlyExpense = new ObservableCollection <Expense>();

            MonthlyExpense.Add(new Expense()
            {
                Name = "Food", Father = 55, Mother = 40, Son = 45, Daughter = 48
            });
            MonthlyExpense.Add(new Expense()
            {
                Name = "Transport", Father = 33, Mother = 45, Son = 54, Daughter = 28
            });
            MonthlyExpense.Add(new Expense()
            {
                Name = "Medical", Father = 43, Mother = 23, Son = 20, Daughter = 34
            });
            MonthlyExpense.Add(new Expense()
            {
                Name = "Clothes", Father = 32, Mother = 54, Son = 23, Daughter = 84
            });
            MonthlyExpense.Add(new Expense()
            {
                Name = "Books", Father = 56, Mother = 18, Son = 43, Daughter = 55
            });
            MonthlyExpense.Add(new Expense()
            {
                Name = "Others", Father = 23, Mother = 54, Son = 33, Daughter = 56
            });
        }
コード例 #2
0
        public StackingLineChartViewModel()
        {
            this.MonthlyExpense = new ObservableCollection <Expense>();

            MonthlyExpense.Add(new Expense()
            {
                Name = "Food", Father = 55, Mother = 40, Son = 45, Daughter = 48
            });
            MonthlyExpense.Add(new Expense()
            {
                Name = "Transport", Father = 33, Mother = 45, Son = 54, Daughter = 28
            });
            MonthlyExpense.Add(new Expense()
            {
                Name = "Medical", Father = 43, Mother = 23, Son = 20, Daughter = 34
            });
            MonthlyExpense.Add(new Expense()
            {
                Name = "Clothes", Father = 32, Mother = 54, Son = 23, Daughter = 84
            });
            MonthlyExpense.Add(new Expense()
            {
                Name = "Books", Father = 56, Mother = 18, Son = 43, Daughter = 55
            });
            MonthlyExpense.Add(new Expense()
            {
                Name = "Others", Father = 23, Mother = 54, Son = 33, Daughter = 56
            });

            ResourceFac      = new ResourceFactory();
            AdornmentInfo5   = new ChartAdornmentInfo();
            AdornmentInfo51  = new ChartAdornmentInfo();
            AdornmentInfo52  = new ChartAdornmentInfo();
            AdornmentInfo53  = new ChartAdornmentInfo();
            AdornmentInfo50  = new ChartAdornmentInfo();
            AdornmentInfo510 = new ChartAdornmentInfo();
            AdornmentInfo520 = new ChartAdornmentInfo();
            AdornmentInfo530 = new ChartAdornmentInfo();

            AdornmentInfo5.HorizontalAlignment = HorizontalAlignment.Center;
            AdornmentInfo5.VerticalAlignment   = VerticalAlignment.Center;
            AdornmentInfo5.ShowLabel           = true;
            AdornmentInfo5.LabelTemplate       = ResourceFac.labelTemplate10;

            AdornmentInfo51.HorizontalAlignment = HorizontalAlignment.Center;
            AdornmentInfo51.VerticalAlignment   = VerticalAlignment.Center;
            AdornmentInfo51.ShowLabel           = true;
            AdornmentInfo51.LabelTemplate       = ResourceFac.labelTemplate10;

            AdornmentInfo52.HorizontalAlignment = HorizontalAlignment.Center;
            AdornmentInfo52.VerticalAlignment   = VerticalAlignment.Center;
            AdornmentInfo52.ShowLabel           = true;
            AdornmentInfo52.LabelTemplate       = ResourceFac.labelTemplate10;

            AdornmentInfo53.HorizontalAlignment = HorizontalAlignment.Center;
            AdornmentInfo53.VerticalAlignment   = VerticalAlignment.Center;
            AdornmentInfo53.ShowLabel           = true;
            AdornmentInfo53.LabelTemplate       = ResourceFac.labelTemplate10;

            AdornmentInfo50.HorizontalAlignment = HorizontalAlignment.Center;
            AdornmentInfo50.VerticalAlignment   = VerticalAlignment.Center;
            AdornmentInfo50.ShowLabel           = true;
            AdornmentInfo50.LabelTemplate       = ResourceFac.labelTemplate10;

            AdornmentInfo510.HorizontalAlignment = HorizontalAlignment.Center;
            AdornmentInfo510.VerticalAlignment   = VerticalAlignment.Center;
            AdornmentInfo510.ShowLabel           = true;
            AdornmentInfo510.LabelTemplate       = ResourceFac.labelTemplate10;

            AdornmentInfo520.HorizontalAlignment = HorizontalAlignment.Center;
            AdornmentInfo520.VerticalAlignment   = VerticalAlignment.Center;
            AdornmentInfo520.ShowLabel           = true;
            AdornmentInfo520.LabelTemplate       = ResourceFac.labelTemplate10;

            AdornmentInfo530.HorizontalAlignment = HorizontalAlignment.Center;
            AdornmentInfo530.VerticalAlignment   = VerticalAlignment.Center;
            AdornmentInfo530.ShowLabel           = true;
            AdornmentInfo530.LabelTemplate       = ResourceFac.labelTemplate10;
        }