public StackingBarChartViewModel()
 {
     this.MedalDetails = new ObservableCollection <StackingBarChartModel>();
     MedalDetails.Add(new StackingBarChartModel()
     {
         CountryName = "URS", GoldMedals = 39, SilverMedals = 31, BronzeMedals = 29
     });
     MedalDetails.Add(new StackingBarChartModel()
     {
         CountryName = "Germany", GoldMedals = 24, SilverMedals = 28, BronzeMedals = 32
     });
     MedalDetails.Add(new StackingBarChartModel()
     {
         CountryName = "Britain", GoldMedals = 20, SilverMedals = 25, BronzeMedals = 25
     });
     MedalDetails.Add(new StackingBarChartModel()
     {
         CountryName = "France", GoldMedals = 19, SilverMedals = 21, BronzeMedals = 23
     });
     MedalDetails.Add(new StackingBarChartModel()
     {
         CountryName = "Italy", GoldMedals = 19, SilverMedals = 15, BronzeMedals = 17
     });
 }
        public StackingColumnChartViewModel()
        {
            this.MedalDetails = new ObservableCollection <Medal>();

            MedalDetails.Add(new Medal()
            {
                CountryName = "USA", GoldMedals = 395, SilverMedals = 319, BronzeMedals = 296
            });
            MedalDetails.Add(new Medal()
            {
                CountryName = "Germany", GoldMedals = 247, SilverMedals = 284, BronzeMedals = 320
            });
            MedalDetails.Add(new Medal()
            {
                CountryName = "UK", GoldMedals = 207, SilverMedals = 255, BronzeMedals = 253
            });
            MedalDetails.Add(new Medal()
            {
                CountryName = "France", GoldMedals = 191, SilverMedals = 212, BronzeMedals = 233
            });
            MedalDetails.Add(new Medal()
            {
                CountryName = "Italy", GoldMedals = 190, SilverMedals = 157, BronzeMedals = 174
            });
            if (AnalyticsInfo.VersionInfo.DeviceFamily != "Windows.Mobile")
            {
                MedalDetails.Add(new Medal()
                {
                    CountryName = "Sweden", GoldMedals = 142, SilverMedals = 160, BronzeMedals = 173
                });
                MedalDetails.Add(new Medal()
                {
                    CountryName = "Australia", GoldMedals = 131, SilverMedals = 137, BronzeMedals = 164
                });
                MedalDetails.Add(new Medal()
                {
                    CountryName = "Japan", GoldMedals = 123, SilverMedals = 112, BronzeMedals = 126
                });
            }
            ResourceFac      = new ResourceFactory();
            AdornmentInfo5   = new ChartAdornmentInfo();
            AdornmentInfo51  = new ChartAdornmentInfo();
            AdornmentInfo52  = new ChartAdornmentInfo();
            AdornmentInfo50  = new ChartAdornmentInfo();
            AdornmentInfo510 = new ChartAdornmentInfo();
            AdornmentInfo520 = new ChartAdornmentInfo();

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

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

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

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

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

            AdornmentInfo520.HorizontalAlignment = HorizontalAlignment.Center;
            AdornmentInfo520.VerticalAlignment   = VerticalAlignment.Bottom;
            AdornmentInfo520.ShowLabel           = true;
            AdornmentInfo520.LabelTemplate       = ResourceFac.labelTemplate10;
        }
Example #3
0
        public StackingColumnChartViewModel()
        {
            this.MedalDetails = new ObservableCollection <Medal>();

            MedalDetails.Add(new Medal()
            {
                CountryName = "USA", GoldMedals = 395, SilverMedals = 319, BronzeMedals = 296
            });
            MedalDetails.Add(new Medal()
            {
                CountryName = "Germany", GoldMedals = 247, SilverMedals = 284, BronzeMedals = 320
            });
            MedalDetails.Add(new Medal()
            {
                CountryName = "UK", GoldMedals = 207, SilverMedals = 255, BronzeMedals = 253
            });
            MedalDetails.Add(new Medal()
            {
                CountryName = "France", GoldMedals = 191, SilverMedals = 212, BronzeMedals = 233
            });
            MedalDetails.Add(new Medal()
            {
                CountryName = "Italy", GoldMedals = 190, SilverMedals = 157, BronzeMedals = 174
            });

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

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

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

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

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

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

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