To get an even better view of the data plotted, you can make use of another Infragistics control, the Legend, which will let you know what each series represents. Once you have set the ItemsSource, you can run the application and the chart will appear as follows: Since you have already set the BindingContext of the page to the collection, you can simply bind the ItemsSource property of the Category Chart to the page’s BindingContext using the following code snippet: The total number of people in the United States in 2016 for the specified age group. The year: this will be 2016 for all values returned from our query. The number of males in the United States in 2016 for the specified age group. The country name: this will be United States for all values returned from our query. The number of females in the United States in 2016 for the specified age group. This service will return data with the following properties: Var str = await c.GetStringAsync(srvRequest) The following code snippet demonstrates the method used to retrieve the data for the chart and set it to the BindingContext of the page: private async void GetData() We will select population data from the United States for the year 2016 using the following request. In this example, you will be pulling data from a web service providing population data.
0 Comments
Leave a Reply. |