Exemplo n.º 1
0
        public StackingAreaChartViewModel()
        {
            AdornmentInfo1  = new ChartAdornmentInfo();
            AdornmentInfo2  = new ChartAdornmentInfo();
            AdornmentInfo3  = new ChartAdornmentInfo();
            AdornmentInfo11 = new ChartAdornmentInfo();
            AdornmentInfo12 = new ChartAdornmentInfo();
            AdornmentInfo13 = new ChartAdornmentInfo();
            AdornmentInfo4  = new ChartAdornmentInfo();
            ResourceFac     = new ResourceFactory();

            AdornmentInfo1.ShowLabel          = true;
            AdornmentInfo1.FontSize           = 10;
            AdornmentInfo1.AdornmentsPosition = AdornmentsPosition.TopAndBottom;
            AdornmentInfo1.Foreground         = new SolidColorBrush(Colors.White);

            AdornmentInfo2.SegmentLabelContent = LabelContent.LabelContentPath;
            AdornmentInfo2.ShowLabel           = true;
            AdornmentInfo2.LabelTemplate       = ResourceFac.labelTemplate12;

            AdornmentInfo3.SegmentLabelContent = LabelContent.LabelContentPath;
            AdornmentInfo3.ShowLabel           = true;
            AdornmentInfo3.LabelTemplate       = ResourceFac.labelTemplate13;

            AdornmentInfo11.SegmentLabelContent = LabelContent.LabelContentPath;
            AdornmentInfo11.ShowLabel           = true;
            AdornmentInfo11.LabelTemplate       = ResourceFac.labelTemplate12;

            AdornmentInfo12.SegmentLabelContent = LabelContent.LabelContentPath;
            AdornmentInfo12.ShowLabel           = true;
            AdornmentInfo12.LabelTemplate       = ResourceFac.labelTemplate13;

            AdornmentInfo13.SegmentLabelContent = LabelContent.LabelContentPath;
            AdornmentInfo13.ShowLabel           = true;
            AdornmentInfo13.VerticalAlignment   = VerticalAlignment.Bottom;
            AdornmentInfo13.LabelTemplate       = ResourceFac.labelTemplate14;

            AdornmentInfo4.SegmentLabelContent = LabelContent.LabelContentPath;
            AdornmentInfo4.ShowLabel           = true;
            AdornmentInfo4.LabelTemplate       = ResourceFac.labelTemplate14;

            this.TemperatureData = new ObservableCollection <Temperatue>();

            TemperatureData.Add(new Temperatue()
            {
                Margin = new Thickness(25, 0, 0, 0),
                Year   = "2008",
                Autumn = 30,
                Spring = 35,
                Summer = 43,
                Winter = 29
            });
            TemperatureData.Add(new Temperatue()
            {
                Margin = new Thickness(0, 0, 0, 0),
                Year   = "2009",
                Autumn = 30,
                Spring = 35,
                Summer = 43,
                Winter = 29
            });
            TemperatureData.Add(new Temperatue()
            {
                Margin = new Thickness(0, 0, 0, 0),
                Year   = "2010",
                Autumn = 32,
                Spring = 37,
                Summer = 47,
                Winter = 27
            });
            TemperatureData.Add(new Temperatue()
            {
                Margin = new Thickness(0, 0, 0, 0),
                Year   = "2011",
                Autumn = 34,
                Spring = 35,
                Summer = 43,
                Winter = 25
            });
            TemperatureData.Add(new Temperatue()
            {
                Margin = AnalyticsInfo.VersionInfo.DeviceFamily != "Windows.Mobile" ?
                         new Thickness(0, 0, 0, 0) : new Thickness(0, 0, 25, 0),
                Year   = "2012",
                Autumn = 28,
                Spring = 36,
                Summer = 49,
                Winter = 27
            });
            if (AnalyticsInfo.VersionInfo.DeviceFamily != "Windows.Mobile")
            {
                TemperatureData.Add(new Temperatue()
                {
                    Margin = new Thickness(0, 0, 25, 0),
                    Year   = "2013",
                    Autumn = 31,
                    Spring = 30,
                    Summer = 52,
                    Winter = 30
                });
            }
        }
Exemplo n.º 2
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
            });
            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;
        }
Exemplo n.º 3
0
        public StackingBarChartViewModel()
        {
            this.GoldInventoryDetails = new ObservableCollection <GoldInventory>();

            GoldInventoryDetails.Add(new GoldInventory()
            {
                Year = 2005, Inferred = 1100, Measured = 750, Reserves = 900
            });
            GoldInventoryDetails.Add(new GoldInventory()
            {
                Year = 2006, Inferred = 1200, Measured = 500, Reserves = 1000
            });
            GoldInventoryDetails.Add(new GoldInventory()
            {
                Year = 2007, Inferred = 900, Measured = 700, Reserves = 1200
            });
            GoldInventoryDetails.Add(new GoldInventory()
            {
                Year = 2008, Inferred = 950, Measured = 1000, Reserves = 900
            });
            if (AnalyticsInfo.VersionInfo.DeviceFamily != "Windows.Mobile")
            {
                GoldInventoryDetails.Add(new GoldInventory()
                {
                    Year = 2009, Inferred = 900, Measured = 1100, Reserves = 1000
                });
                GoldInventoryDetails.Add(new GoldInventory()
                {
                    Year = 2010, Inferred = 900, Measured = 1200, Reserves = 1000
                });
                GoldInventoryDetails.Add(new GoldInventory()
                {
                    Year = 2011, Inferred = 1000, Measured = 1100, Reserves = 1050
                });
            }

            ResourceFac = new ResourceFactory();

            AdornmentInfo1   = new ChartAdornmentInfo();
            AdornmentInfo11  = new ChartAdornmentInfo();
            AdornmentInfo12  = new ChartAdornmentInfo();
            AdornmentInfo10  = new ChartAdornmentInfo();
            AdornmentInfo110 = new ChartAdornmentInfo();
            AdornmentInfo120 = new ChartAdornmentInfo();
            AdornmentInfo2   = new ChartAdornmentInfo();
            AdornmentInfo5   = new ChartAdornmentInfo();
            AdornmentInfo51  = new ChartAdornmentInfo();
            AdornmentInfo52  = new ChartAdornmentInfo();

            AdornmentInfo1.ShowLabel          = true;
            AdornmentInfo1.FontSize           = 10;
            AdornmentInfo1.AdornmentsPosition = AdornmentsPosition.TopAndBottom;
            AdornmentInfo1.Foreground         = new SolidColorBrush(Colors.White);

            AdornmentInfo11.ShowLabel          = true;
            AdornmentInfo11.FontSize           = 10;
            AdornmentInfo11.AdornmentsPosition = AdornmentsPosition.TopAndBottom;
            AdornmentInfo11.Foreground         = new SolidColorBrush(Colors.White);

            AdornmentInfo12.ShowLabel          = true;
            AdornmentInfo12.FontSize           = 10;
            AdornmentInfo12.AdornmentsPosition = AdornmentsPosition.TopAndBottom;
            AdornmentInfo12.Foreground         = new SolidColorBrush(Colors.White);

            AdornmentInfo10.ShowLabel          = true;
            AdornmentInfo10.FontSize           = 10;
            AdornmentInfo10.AdornmentsPosition = AdornmentsPosition.TopAndBottom;
            AdornmentInfo10.Foreground         = new SolidColorBrush(Colors.White);

            AdornmentInfo110.ShowLabel          = true;
            AdornmentInfo110.FontSize           = 10;
            AdornmentInfo110.AdornmentsPosition = AdornmentsPosition.TopAndBottom;
            AdornmentInfo110.Foreground         = new SolidColorBrush(Colors.White);

            AdornmentInfo120.ShowLabel          = true;
            AdornmentInfo120.FontSize           = 10;
            AdornmentInfo120.AdornmentsPosition = AdornmentsPosition.TopAndBottom;
            AdornmentInfo120.Foreground         = new SolidColorBrush(Colors.White);

            AdornmentInfo2.SegmentLabelContent = LabelContent.LabelContentPath;
            AdornmentInfo2.ShowLabel           = true;
            AdornmentInfo2.LabelTemplate       = ResourceFac.labelTemplate12;

            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;
        }
Exemplo n.º 4
0
        public StackingGroupViewModel()
        {
            this.AnnualDetails = new ObservableCollection <StackingGroupProductDetails>();
            if (AnalyticsInfo.VersionInfo.DeviceFamily != "Windows.Mobile")
            {
                AnnualDetails.Add(new StackingGroupProductDetails()
                {
                    Year     = "2009",
                    Quarter1 = 34,
                    Quarter2 = 31,
                    Quarter3 = 29,
                    Quarter4 = 30
                });
            }
            AnnualDetails.Add(new StackingGroupProductDetails()
            {
                Year     = "2010",
                Quarter1 = 24,
                Quarter2 = 28,
                Quarter3 = 32,
                Quarter4 = 33
            });
            AnnualDetails.Add(new StackingGroupProductDetails()
            {
                Year     = "2011",
                Quarter1 = 20,
                Quarter2 = 25,
                Quarter3 = 25,
                Quarter4 = 26
            });
            AnnualDetails.Add(new StackingGroupProductDetails()
            {
                Year     = "2012",
                Quarter1 = 19,
                Quarter2 = 21,
                Quarter3 = 23,
                Quarter4 = 26
            });
            AnnualDetails.Add(new StackingGroupProductDetails()
            {
                Year     = "2013",
                Quarter1 = 19,
                Quarter2 = 15,
                Quarter3 = 17,
                Quarter4 = 21
            });

            ResourceFac    = new ResourceFactory();
            AdronmentInfo1 = new ChartAdornmentInfo();
            AdronmentInfo2 = new ChartAdornmentInfo();
            AdronmentInfo3 = new ChartAdornmentInfo();
            AdronmentInfo4 = new ChartAdornmentInfo();

            AdronmentInfo1.AdornmentsPosition  = AdornmentsPosition.TopAndBottom;
            AdronmentInfo1.ShowMarker          = false;
            AdronmentInfo1.ShowLabel           = true;
            AdronmentInfo1.HorizontalAlignment = HorizontalAlignment.Center;
            AdronmentInfo1.VerticalAlignment   = VerticalAlignment.Center;

            AdronmentInfo2.AdornmentsPosition  = AdornmentsPosition.TopAndBottom;
            AdronmentInfo2.ShowMarker          = false;
            AdronmentInfo2.ShowLabel           = true;
            AdronmentInfo2.HorizontalAlignment = HorizontalAlignment.Center;
            AdronmentInfo2.VerticalAlignment   = VerticalAlignment.Center;

            AdronmentInfo3.AdornmentsPosition  = AdornmentsPosition.TopAndBottom;
            AdronmentInfo3.ShowMarker          = false;
            AdronmentInfo3.ShowLabel           = true;
            AdronmentInfo3.HorizontalAlignment = HorizontalAlignment.Center;
            AdronmentInfo3.VerticalAlignment   = VerticalAlignment.Center;

            AdronmentInfo4.AdornmentsPosition  = AdornmentsPosition.TopAndBottom;
            AdronmentInfo4.ShowMarker          = false;
            AdronmentInfo4.ShowLabel           = true;
            AdronmentInfo4.HorizontalAlignment = HorizontalAlignment.Center;
            AdronmentInfo4.VerticalAlignment   = VerticalAlignment.Center;
        }
Exemplo n.º 5
0
        public PieChartViewModel()
        {
            DoughnutSeriesData = new ObservableCollection <StackedDoughnutModel>
            {
                new StackedDoughnutModel("Vehicle", 62.7, new Uri("ms-appx:///Chart/Tutorials/ChartSamples/PieChart/Images/Car.png", UriKind.RelativeOrAbsolute)),
                new StackedDoughnutModel("Education", 29.5, new Uri("ms-appx:///Chart/Tutorials/ChartSamples/PieChart/Images/Chart_Book.png", UriKind.RelativeOrAbsolute)),
                new StackedDoughnutModel("Home", 85.2, new Uri("ms-appx:///Chart/Tutorials/ChartSamples/PieChart/Images/House.png", UriKind.RelativeOrAbsolute)),
                new StackedDoughnutModel("Personal", 45.6, new Uri("ms-appx:///Chart/Tutorials/ChartSamples/PieChart/Images/Personal.png", UriKind.RelativeOrAbsolute))
            };

            this.CountryDetails = new List <Populations>();
            CountryDetails.Add(new Populations()
            {
                Countries = "Uruguay", Count = 2807
            });
            CountryDetails.Add(new Populations()
            {
                Countries = "Argentina", Count = 2577
            });
            CountryDetails.Add(new Populations()
            {
                Countries = "USA", Count = 2473
            });
            CountryDetails.Add(new Populations()
            {
                Countries = "Germany", Count = 2120
            });
            CountryDetails.Add(new Populations()
            {
                Countries = "Netherlands", Count = 2071
            });
            CountryDetails.Add(new Populations()
            {
                Countries = "Malta", Count = 960
            });
            CountryDetails.Add(new Populations()
            {
                Countries = "Maldives", Count = 941
            });
            CountryDetails.Add(new Populations()
            {
                Countries = "Monaco", Count = 908
            });

            CompanyDetails = new List <CompanyDetail>();
            CompanyDetails.Add(new CompanyDetail()
            {
                CompanyName = "Rolls Royce", CompanyTurnover = 750000
            });
            CompanyDetails.Add(new CompanyDetail()
            {
                CompanyName = "Benz", CompanyTurnover = 500000
            });
            CompanyDetails.Add(new CompanyDetail()
            {
                CompanyName = "Audi", CompanyTurnover = 450000
            });
            CompanyDetails.Add(new CompanyDetail()
            {
                CompanyName = "BMW", CompanyTurnover = 700000
            });
            CompanyDetails.Add(new CompanyDetail()
            {
                CompanyName = "Mahindra", CompanyTurnover = 350000
            });
            CompanyDetails.Add(new CompanyDetail()
            {
                CompanyName = "Jaguar", CompanyTurnover = 650000
            });
            CompanyDetails.Add(new CompanyDetail()
            {
                CompanyName = "Hero Honda", CompanyTurnover = 250000
            });

            Metric = new List <Metrics>();
            Metric.Add(new Metrics()
            {
                ResponseTime = 43, Utilization = 32
            });
            Metric.Add(new Metrics()
            {
                ResponseTime = 20, Utilization = 34
            });
            Metric.Add(new Metrics()
            {
                ResponseTime = 67, Utilization = 41
            });
            Metric.Add(new Metrics()
            {
                ResponseTime = 52, Utilization = 42
            });
            Metric.Add(new Metrics()
            {
                ResponseTime = 71, Utilization = 48
            });
            Metric.Add(new Metrics()
            {
                ResponseTime = 30, Utilization = 45
            });

            this.Population = new List <Populations>();
            Population.Add(new Populations()
            {
                Continent = "Asia", Countries = "China", States = "Taiwan", PopulationinContinents = 50.02, PopulationinCountries = 26.02, PopulationinStates = 18.02
            });
            Population.Add(new Populations()
            {
                Continent = "Africa", Countries = "India", States = "Shandong", PopulationinContinents = 20.81, PopulationinCountries = 24, PopulationinStates = 8
            });
            Population.Add(new Populations()
            {
                Continent = "Europe", Countries = "Nigeria", States = "UP", PopulationinContinents = 15.37, PopulationinCountries = 12.81, PopulationinStates = 14.5
            });
            Population.Add(new Populations()
            {
                Countries = "Ethiopia", States = "Maharashtra", PopulationinCountries = 8, PopulationinStates = 9.5
            });
            Population.Add(new Populations()
            {
                Countries = "Germany", States = "Kano", PopulationinCountries = 8.37, PopulationinStates = 7.81
            });
            Population.Add(new Populations()
            {
                Countries = "Turkey", States = "Lagos", PopulationinCountries = 7, PopulationinStates = 5
            });
            Population.Add(new Populations()
            {
                States = "Oromia", PopulationinStates = 5
            });
            Population.Add(new Populations()
            {
                States = "Amhara", PopulationinStates = 3
            });
            Population.Add(new Populations()
            {
                States = "Hessen", PopulationinStates = 5.37
            });
            Population.Add(new Populations()
            {
                States = "Bayern", PopulationinStates = 3
            });
            Population.Add(new Populations()
            {
                States = "Istanbul", PopulationinStates = 4.5
            });
            Population.Add(new Populations()
            {
                States = "Ankara", PopulationinStates = 2.5
            });

            AdornmentsFac   = new ResourceFactory();
            AdornmentInfo   = new ChartAdornmentInfo();
            AdornmentInfo1  = new ChartAdornmentInfo();
            AdornmentInfo2  = new ChartAdornmentInfo();
            AdornmentInfo3  = new ChartAdornmentInfo();
            AdornmentInfo4  = new ChartAdornmentInfo();
            AdornmentInfo5  = new ChartAdornmentInfo();
            AdornmentInfo6  = new ChartAdornmentInfo();
            AdornmentInfo7  = new ChartAdornmentInfo();
            AdornmentInfo8  = new ChartAdornmentInfo();
            AdornmentInfo9  = new ChartAdornmentInfo();
            AdornmentInfo10 = new ChartAdornmentInfo();
            AdornmentInfo11 = new ChartAdornmentInfo();

            AdornmentInfo.HorizontalAlignment = HorizontalAlignment.Center;
            AdornmentInfo.VerticalAlignment   = VerticalAlignment.Center;
            AdornmentInfo.ShowConnectorLine   = true;
            AdornmentInfo.UseSeriesPalette    = true;
            AdornmentInfo.ConnectorHeight     = 30;
            AdornmentInfo.ShowLabel           = true;
            AdornmentInfo.SegmentLabelContent = LabelContent.LabelContentPath;
            AdornmentInfo.LabelTemplate       = AdornmentsFac.labelTemplate8;

            AdornmentInfo1.ShowLabel           = true;
            AdornmentInfo1.FontSize            = 10;
            AdornmentInfo1.SegmentLabelContent = LabelContent.LabelContentPath;
            AdornmentInfo1.LabelTemplate       = AdornmentsFac.labelTemplate21;

            AdornmentInfo2.ShowLabel           = true;
            AdornmentInfo2.FontSize            = 10;
            AdornmentInfo2.SegmentLabelContent = LabelContent.LabelContentPath;
            AdornmentInfo2.LabelTemplate       = AdornmentsFac.labelTemplate22;

            AdornmentInfo3.ShowLabel           = true;
            AdornmentInfo3.FontSize            = 10;
            AdornmentInfo3.SegmentLabelContent = LabelContent.LabelContentPath;
            AdornmentInfo3.LabelTemplate       = AdornmentsFac.labelTemplate23;

            AdornmentInfo4.ShowLabel           = true;
            AdornmentInfo4.SegmentLabelContent = LabelContent.Percentage;
            AdornmentInfo4.SegmentLabelFormat  = "##.#";
            AdornmentInfo4.AdornmentsPosition  = AdornmentsPosition.Bottom;
            AdornmentInfo4.HorizontalAlignment = HorizontalAlignment.Center;
            AdornmentInfo4.ConnectorHeight     = 30;
            AdornmentInfo4.VerticalAlignment   = VerticalAlignment.Center;
            AdornmentInfo4.ShowConnectorLine   = true;
            AdornmentInfo4.UseSeriesPalette    = true;

            AdornmentInfo5.ShowLabel        = true;
            AdornmentInfo5.UseSeriesPalette = true;

            AdornmentInfo6.ShowLabel           = true;
            AdornmentInfo6.SegmentLabelContent = LabelContent.LabelContentPath;
            AdornmentInfo6.AdornmentsPosition  = AdornmentsPosition.Bottom;
            AdornmentInfo6.LabelTemplate       = AdornmentsFac.labelTemplate21;

            AdornmentInfo7.ShowLabel           = true;
            AdornmentInfo7.SegmentLabelContent = LabelContent.LabelContentPath;
            AdornmentInfo7.AdornmentsPosition  = AdornmentsPosition.Bottom;
            AdornmentInfo7.LabelTemplate       = AdornmentsFac.labelTemplate22;

            AdornmentInfo8.ShowLabel           = true;
            AdornmentInfo8.SegmentLabelContent = LabelContent.LabelContentPath;
            AdornmentInfo8.AdornmentsPosition  = AdornmentsPosition.Bottom;
            AdornmentInfo8.LabelTemplate       = AdornmentsFac.labelTemplate23;

            AdornmentInfo9.ShowLabel         = true;
            AdornmentInfo9.ShowConnectorLine = true;
            AdornmentInfo9.UseSeriesPalette  = true;
            AdornmentInfo9.ConnectorHeight   = 17;

            AdornmentInfo10.ShowLabel = true;
            AdornmentInfo11.ShowLabel = true;

            SelectedIndex = 0;
        }
Exemplo n.º 6
0
        public CommoditiesPrices()
        {
            CommodityDetails = new ObservableCollection <Commodities>();
            CommodityDetails.Add(new Commodities()
            {
                Commodity     = "Gold",
                High          = 2700,
                Low           = 2650,
                ChangingPrice = 46,
                XValue        = 1
            });
            CommodityDetails.Add(new Commodities()
            {
                Commodity     = "Silver",
                High          = 68,
                Low           = 58,
                ChangingPrice = -10,
                XValue        = 2
            });
            CommodityDetails.Add(new Commodities()
            {
                Commodity     = "Crudeoil",
                High          = 1500,
                Low           = 1380,
                ChangingPrice = -34,
                XValue        = 3
            });
            CommodityDetails.Add(new Commodities()
            {
                Commodity     = "Naturalgas",
                High          = 2200,
                Low           = 2100,
                ChangingPrice = -45,
                XValue        = 4
            });
            CommodityDetails.Add(new Commodities()
            {
                Commodity     = "Aluminium",
                High          = 120,
                Low           = 112,
                ChangingPrice = 8,
                XValue        = 5
            });
            CommodityDetails.Add(new Commodities()
            {
                Commodity     = "Copper",
                High          = 410,
                Low           = 393,
                ChangingPrice = 23,
                XValue        = 6
            });
            CommodityDetails.Add(new Commodities()
            {
                Commodity     = "Nickel",
                High          = 110,
                Low           = 90,
                ChangingPrice = -15,
                XValue        = 7
            });
            if (AnalyticsInfo.VersionInfo.DeviceFamily != "Windows.Mobile")
            {
                CommodityDetails.Add(new Commodities()
                {
                    Commodity     = "Lead",
                    High          = 133,
                    Low           = 123,
                    ChangingPrice = 16,
                    XValue        = 8
                });

                CommodityDetails.Add(new Commodities()
                {
                    Commodity     = "Cotton",
                    High          = 2005,
                    Low           = 1990,
                    ChangingPrice = 37,
                    XValue        = 9
                });
                CommodityDetails.Add(new Commodities()
                {
                    Commodity     = "Menthaoil",
                    High          = 835,
                    Low           = 797,
                    ChangingPrice = -22,
                    XValue        = 10
                });
                CommodityDetails.Add(new Commodities()
                {
                    Commodity     = "Zinc",
                    High          = 123,
                    Low           = 110,
                    ChangingPrice = 13,
                    XValue        = 11
                });
            }

            ResourceFac = new ResourceFactory();
            AdInfo      = new ChartAdornmentInfo();
            AdInfo1     = new ChartAdornmentInfo();

            AdInfo.ShowLabel     = true;
            AdInfo.Symbol        = ChartSymbol.Ellipse;
            AdInfo.LabelTemplate = ResourceFac.labelTemplate17;

            AdInfo1.ShowLabel     = true;
            AdInfo1.LabelTemplate = ResourceFac.labelTemplate20;
        }
Exemplo n.º 7
0
        public StriplineDemoViewModel()
        {
            ClimateData = new ObservableCollection <StriplineDemoDataModel>();
            ClimateData.Add(new StriplineDemoDataModel()
            {
                ID               = 1,
                Month            = "Jan",
                Quarter          = "Q1",
                Temperature      = 33,
                Rainfall         = 24,
                RelativeHumidity = 75
            });
            ClimateData.Add(new StriplineDemoDataModel()
            {
                ID               = 2,
                Month            = "Feb",
                Quarter          = "Q1",
                Temperature      = 37,
                Rainfall         = 7,
                RelativeHumidity = 73
            });
            ClimateData.Add(new StriplineDemoDataModel()
            {
                ID               = 3,
                Month            = "Mar",
                Quarter          = "Q1",
                Temperature      = 39,
                Rainfall         = 15,
                RelativeHumidity = 71
            });
            ClimateData.Add(new StriplineDemoDataModel()
            {
                ID               = 4,
                Month            = "Apr",
                Quarter          = "Q2",
                Temperature      = 43,
                Rainfall         = 25,
                RelativeHumidity = 71
            });
            ClimateData.Add(new StriplineDemoDataModel()
            {
                ID               = 5,
                Month            = "May",
                Quarter          = "Q2",
                Temperature      = 45,
                Rainfall         = 52,
                RelativeHumidity = 65
            });
            ClimateData.Add(new StriplineDemoDataModel()
            {
                ID               = 6,
                Month            = "Jun",
                Quarter          = "Q2",
                Temperature      = 43,
                Rainfall         = 53,
                RelativeHumidity = 59
            });
            ClimateData.Add(new StriplineDemoDataModel()
            {
                ID               = 7,
                Month            = "Jul",
                Quarter          = "Q3",
                Temperature      = 41,
                Rainfall         = 84,
                RelativeHumidity = 64
            });
            ClimateData.Add(new StriplineDemoDataModel()
            {
                ID               = 8,
                Month            = "Aug",
                Quarter          = "Q3",
                Temperature      = 40,
                Rainfall         = 124,
                RelativeHumidity = 68
            });
            ClimateData.Add(new StriplineDemoDataModel()
            {
                ID               = 9,
                Month            = "Sep",
                Quarter          = "Q3",
                Temperature      = 39,
                Rainfall         = 118,
                RelativeHumidity = 71
            });
            ClimateData.Add(new StriplineDemoDataModel()
            {
                ID               = 10,
                Month            = "Oct",
                Quarter          = "Q4",
                Temperature      = 39,
                Rainfall         = 267,
                RelativeHumidity = 79
            });
            ClimateData.Add(new StriplineDemoDataModel()
            {
                ID               = 11,
                Month            = "Nov",
                Quarter          = "Q4",
                Temperature      = 34,
                Rainfall         = 289,
                RelativeHumidity = 80
            });
            ClimateData.Add(new StriplineDemoDataModel()
            {
                ID               = 12,
                Month            = "Dec",
                Quarter          = "Q4",
                Temperature      = 33,
                Rainfall         = 139,
                RelativeHumidity = 77
            });

            ResourceFac                  = new ResourceFactory();
            AdornmentInfo                = new ChartAdornmentInfo();
            AdornmentInfo1               = new ChartAdornmentInfo();
            AdornmentInfo.ShowLabel      = true;
            AdornmentInfo.ShowMarker     = true;
            AdornmentInfo.LabelTemplate  = ResourceFac.labelTemplate15;
            AdornmentInfo.SymbolTemplate = ResourceFac.labelTemplate16;

            AdornmentInfo1                = new ChartAdornmentInfo();
            AdornmentInfo1.ShowLabel      = true;
            AdornmentInfo1.ShowMarker     = true;
            AdornmentInfo1.LabelTemplate  = ResourceFac.labelTemplate15;
            AdornmentInfo1.SymbolTemplate = ResourceFac.labelTemplate16;
        }
Exemplo n.º 8
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;
        }
Exemplo n.º 9
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;
        }
Exemplo n.º 10
0
        public PieChartViewModel()
        {
            this.Expenditure = new List <CompanyExpense>();
            Expenditure.Add(new CompanyExpense()
            {
                Expense = "Seeds", Amount = 7658d
            });
            Expenditure.Add(new CompanyExpense()
            {
                Expense = "Fertilizers", Amount = 7090d
            });
            Expenditure.Add(new CompanyExpense()
            {
                Expense = "Insurance", Amount = 3577d
            });
            Expenditure.Add(new CompanyExpense()
            {
                Expense = "Labor", Amount = 1473d
            });
            Expenditure.Add(new CompanyExpense()
            {
                Expense = "Warehousing", Amount = 820d
            });
            Expenditure.Add(new CompanyExpense()
            {
                Expense = "Taxes", Amount = 571d
            });
            Expenditure.Add(new CompanyExpense()
            {
                Expense = "Truck", Amount = 462d
            });

            CompanyDetails = new List <CompanyDetail>();
            CompanyDetails.Add(new CompanyDetail()
            {
                CompanyName = "Rolls Royce", CompanyTurnover = 750000
            });
            CompanyDetails.Add(new CompanyDetail()
            {
                CompanyName = "Benz", CompanyTurnover = 500000
            });
            CompanyDetails.Add(new CompanyDetail()
            {
                CompanyName = "Audi", CompanyTurnover = 450000
            });
            CompanyDetails.Add(new CompanyDetail()
            {
                CompanyName = "BMW", CompanyTurnover = 700000
            });
            CompanyDetails.Add(new CompanyDetail()
            {
                CompanyName = "Mahindra", CompanyTurnover = 350000
            });
            CompanyDetails.Add(new CompanyDetail()
            {
                CompanyName = "Jaguar", CompanyTurnover = 650000
            });
            CompanyDetails.Add(new CompanyDetail()
            {
                CompanyName = "Hero Honda", CompanyTurnover = 250000
            });

            Metric = new List <Metrics>();
            Metric.Add(new Metrics()
            {
                ResponseTime = 43, Utilization = 32
            });
            Metric.Add(new Metrics()
            {
                ResponseTime = 20, Utilization = 34
            });
            Metric.Add(new Metrics()
            {
                ResponseTime = 67, Utilization = 41
            });
            Metric.Add(new Metrics()
            {
                ResponseTime = 52, Utilization = 42
            });
            Metric.Add(new Metrics()
            {
                ResponseTime = 71, Utilization = 48
            });
            Metric.Add(new Metrics()
            {
                ResponseTime = 30, Utilization = 45
            });

            this.Population = new List <Populations>();
            Population.Add(new Populations()
            {
                Continent = "Asia", Countries = "China", States = "Taiwan", PopulationinContinents = 50.02, PopulationinCountries = 26.02, PopulationinStates = 18.02
            });
            Population.Add(new Populations()
            {
                Continent = "Africa", Countries = "India", States = "Shandong", PopulationinContinents = 20.81, PopulationinCountries = 24, PopulationinStates = 8
            });
            Population.Add(new Populations()
            {
                Continent = "Europe", Countries = "Nigeria", States = "UP", PopulationinContinents = 15.37, PopulationinCountries = 12.81, PopulationinStates = 14.5
            });
            Population.Add(new Populations()
            {
                Countries = "Ethiopia", States = "Maharashtra", PopulationinCountries = 8, PopulationinStates = 9.5
            });
            Population.Add(new Populations()
            {
                Countries = "Germany", States = "Kano", PopulationinCountries = 8.37, PopulationinStates = 7.81
            });
            Population.Add(new Populations()
            {
                Countries = "Turkey", States = "Lagos", PopulationinCountries = 7, PopulationinStates = 5
            });
            Population.Add(new Populations()
            {
                States = "Oromia", PopulationinStates = 5
            });
            Population.Add(new Populations()
            {
                States = "Amhara", PopulationinStates = 3
            });
            Population.Add(new Populations()
            {
                States = "Hessen", PopulationinStates = 5.37
            });
            Population.Add(new Populations()
            {
                States = "Bayern", PopulationinStates = 3
            });
            Population.Add(new Populations()
            {
                States = "Istanbul", PopulationinStates = 4.5
            });
            Population.Add(new Populations()
            {
                States = "Ankara", PopulationinStates = 2.5
            });

            AdornmentsFac   = new ResourceFactory();
            AdornmentInfo   = new ChartAdornmentInfo();
            AdornmentInfo1  = new ChartAdornmentInfo();
            AdornmentInfo2  = new ChartAdornmentInfo();
            AdornmentInfo3  = new ChartAdornmentInfo();
            AdornmentInfo4  = new ChartAdornmentInfo();
            AdornmentInfo5  = new ChartAdornmentInfo();
            AdornmentInfo6  = new ChartAdornmentInfo();
            AdornmentInfo7  = new ChartAdornmentInfo();
            AdornmentInfo8  = new ChartAdornmentInfo();
            AdornmentInfo9  = new ChartAdornmentInfo();
            AdornmentInfo10 = new ChartAdornmentInfo();
            AdornmentInfo11 = new ChartAdornmentInfo();

            AdornmentInfo.HorizontalAlignment = HorizontalAlignment.Center;
            AdornmentInfo.VerticalAlignment   = VerticalAlignment.Center;
            AdornmentInfo.ShowConnectorLine   = true;
            AdornmentInfo.UseSeriesPalette    = true;
            AdornmentInfo.ConnectorHeight     = 30;
            AdornmentInfo.ShowLabel           = true;
            AdornmentInfo.SegmentLabelContent = LabelContent.LabelContentPath;
            AdornmentInfo.LabelTemplate       = AdornmentsFac.labelTemplate8;

            AdornmentInfo1.ShowLabel           = true;
            AdornmentInfo1.FontSize            = 10;
            AdornmentInfo1.SegmentLabelContent = LabelContent.LabelContentPath;
            AdornmentInfo1.LabelTemplate       = AdornmentsFac.labelTemplate21;

            AdornmentInfo2.ShowLabel           = true;
            AdornmentInfo2.FontSize            = 10;
            AdornmentInfo2.SegmentLabelContent = LabelContent.LabelContentPath;
            AdornmentInfo2.LabelTemplate       = AdornmentsFac.labelTemplate22;

            AdornmentInfo3.ShowLabel           = true;
            AdornmentInfo3.FontSize            = 10;
            AdornmentInfo3.SegmentLabelContent = LabelContent.LabelContentPath;
            AdornmentInfo3.LabelTemplate       = AdornmentsFac.labelTemplate23;

            AdornmentInfo4.ShowLabel           = true;
            AdornmentInfo4.SegmentLabelContent = LabelContent.Percentage;
            AdornmentInfo4.SegmentLabelFormat  = "##.#";
            AdornmentInfo4.AdornmentsPosition  = AdornmentsPosition.Bottom;
            AdornmentInfo4.HorizontalAlignment = HorizontalAlignment.Center;
            AdornmentInfo4.ConnectorHeight     = 30;
            AdornmentInfo4.VerticalAlignment   = VerticalAlignment.Center;
            AdornmentInfo4.ShowConnectorLine   = true;
            AdornmentInfo4.UseSeriesPalette    = true;

            AdornmentInfo5.ShowLabel        = true;
            AdornmentInfo5.UseSeriesPalette = true;

            AdornmentInfo6.ShowLabel           = true;
            AdornmentInfo6.SegmentLabelContent = LabelContent.LabelContentPath;
            AdornmentInfo6.AdornmentsPosition  = AdornmentsPosition.Bottom;
            AdornmentInfo6.LabelTemplate       = AdornmentsFac.labelTemplate21;

            AdornmentInfo7.ShowLabel           = true;
            AdornmentInfo7.SegmentLabelContent = LabelContent.LabelContentPath;
            AdornmentInfo7.AdornmentsPosition  = AdornmentsPosition.Bottom;
            AdornmentInfo7.LabelTemplate       = AdornmentsFac.labelTemplate22;

            AdornmentInfo8.ShowLabel           = true;
            AdornmentInfo8.SegmentLabelContent = LabelContent.LabelContentPath;
            AdornmentInfo8.AdornmentsPosition  = AdornmentsPosition.Bottom;
            AdornmentInfo8.LabelTemplate       = AdornmentsFac.labelTemplate23;

            AdornmentInfo9.ShowLabel         = true;
            AdornmentInfo9.ShowConnectorLine = true;
            AdornmentInfo9.UseSeriesPalette  = true;
            AdornmentInfo9.ConnectorHeight   = 17;

            AdornmentInfo10.ShowLabel = true;
            AdornmentInfo11.ShowLabel = true;
        }