public StackingColumnChartViewModel() { this.MedalDetails = new ObservableCollection <StackingColumnChartModel>(); MedalDetails.Add(new StackingColumnChartModel() { CountryName = "USA", GoldMedals = 39, SilverMedals = 31, BronzeMedals = 29 }); MedalDetails.Add(new StackingColumnChartModel() { CountryName = "Germany", GoldMedals = 24, SilverMedals = 28, BronzeMedals = 32 }); MedalDetails.Add(new StackingColumnChartModel() { CountryName = "Britain", GoldMedals = 20, SilverMedals = 25, BronzeMedals = 25 }); MedalDetails.Add(new StackingColumnChartModel() { CountryName = "France", GoldMedals = 19, SilverMedals = 21, BronzeMedals = 23 }); MedalDetails.Add(new StackingColumnChartModel() { CountryName = "Italy", GoldMedals = 19, SilverMedals = 15, BronzeMedals = 17 }); }
public StackingChartViewModel() { this.MedalDetails = new List <StackedModel>(); MedalDetails.Add(new StackedModel() { CountryName = "USA", GoldMedals = 39, SilverMedals = 31, BronzeMedals = 29 }); MedalDetails.Add(new StackedModel() { CountryName = "Germany", GoldMedals = 24, SilverMedals = 28, BronzeMedals = 32 }); MedalDetails.Add(new StackedModel() { CountryName = "Britain", GoldMedals = 20, SilverMedals = 25, BronzeMedals = 25 }); MedalDetails.Add(new StackedModel() { CountryName = "France", GoldMedals = 19, SilverMedals = 21, BronzeMedals = 23 }); MedalDetails.Add(new StackedModel() { CountryName = "Italy", GoldMedals = 19, SilverMedals = 15, BronzeMedals = 17 }); this.Accidents = new List <Accidents>(); DateTime mth = new DateTime(2011, 1, 1); Accidents.Add(new Accidents() { Month = mth.AddMonths(6), Bus = 18, Car = 24, Truck = 33 }); Accidents.Add(new Accidents() { Month = mth.AddMonths(7), Bus = 16, Car = 22, Truck = 30 }); Accidents.Add(new Accidents() { Month = mth.AddMonths(8), Bus = 17, Car = 26, Truck = 34 }); Accidents.Add(new Accidents() { Month = mth.AddMonths(9), Bus = 16, Car = 22, Truck = 29 }); Accidents.Add(new Accidents() { Month = mth.AddMonths(10), Bus = 15, Car = 25, Truck = 31 }); Accidents.Add(new Accidents() { Month = mth.AddMonths(11), Bus = 16, Car = 23, Truck = 32 }); }
public StackingColumnChartViewModel() { this.MedalDetails = new ObservableCollection <Medal>(); Random rd = new Random(); for (int i = 0; i < 60; i++) { MedalDetails.Add(new Medal() { CountryName = i, GoldMedals = rd.Next(0, 30), SilverMedals = rd.Next(30, 40), BronzeMedals = rd.Next(20, 30) }); } }
public FastStackingColumnChartViewModel() { this.MedalDetails = new ObservableCollection <Medals>(); Random rd = new Random(); int count = AnalyticsInfo.VersionInfo.DeviceFamily != "Windows.Mobile" ? 100 : 50; for (int i = 0; i < count; i++) { MedalDetails.Add(new Medals() { CountryName = i, GoldMedals = rd.Next(20, 60), SilverMedals = rd.Next(30, 40), BronzeMedals = rd.Next(20, 30) }); } }
public StackingColumnChartViewModel() { this.MedalDetails = new ObservableCollection <Medal>(); //MedalDetails.Add(new Medal() { CountryName = "USA", GoldMedals = 929, SilverMedals = 729, BronzeMedals = 638 }); MedalDetails.Add(new Medal() { CountryName = "URS", GoldMedals = 395, SilverMedals = 319, BronzeMedals = 296 }); MedalDetails.Add(new Medal() { CountryName = "Germany", GoldMedals = 247, SilverMedals = 284, BronzeMedals = 320 }); MedalDetails.Add(new Medal() { CountryName = "Britain", 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 }); //MedalDetails.Add(new Medal() { CountryName = "China", GoldMedals = 163, SilverMedals = 117, BronzeMedals = 105 }); 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 }); }
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; }
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; }