Web Part Connection |
You can use filter Web Part to pass value to Collabion Charts and then change the view of the chart based on the value to display a subset of data. For example, you can type the name of a region in a Text Filter Web Part and then display the population data of that region on the chart. Web Part Connection feature is used to filter the charts. Filter Web Parts or any custom Web Part that passes value, can be used to filter chart data in real time. How filter Web Parts work In general, connecting a filter Web Part with Collabion Charts works in the following way:
Types of Connection available Two types of connections are possible between Collabion Charts and filter Web Part:
Ways to filter Collabion Charts through Web Parts You can connect a Web Part with Collabion Charts so that the chart data can be filtered based on the filter value in the following ways:
The process of connecting a Web Part with Collabion Chart is similar for all types of filter Web Parts. Let's take a look at the following two examples to go through the process; it will also help you understand the difference between Single Value and Multiple Value Filtering. Connect a Text Filter Web Part and Pass Single Value to Collabion Charts for SharePoint We have built a chart “Country Details” using Collabion Charts for SharePoint Web Part. It shows Population and Population Density of several countries across the globe. And this is how the “Country Details” chart looks: Note: To learn how to build a chart; please refer to Introduction -> How to create a chart. As you can see, countries appear in ascending alphabetical order in the chart. Finding population data about Asian countries or European countries is difficult. Let’s add a Text Filter that allows viewers to filter the chart by “Continent”.
Note: If the page contains multiple custom or filter Web Parts, names of all of them are displayed in this menu - you have to select the desired one.
Note1: Be sure to remove pop-up blocks from your browser; otherwise the Connection Settings window will not appear.
Type "Asia" in the Filter text box and press enter key. The chart will display the population data of Asian countries only. Type “Europe” and press enter; the chart will display the population data of European countries and so on. Connect a Choice Filter Web Part and Pass Multiple Values to Collabion Charts for SharePoint In this example, we will use a Choice Filter Web Part to pass mutliple values to the chart. We have built a chart “Country Details” using Collabion Charts for SharePoint Web Part. It shows Population and Population Density of several countries across the globe. And this is how the “Country Details” chart looks: Note: To learn how to build a chart; please refer to Introduction -> How to create a chart. As you can see, countries appear in ascending alphabetical order in the chart. Finding population data about Asian countries or European countries is difficult. Let’s add a Text Filter that allows viewers to filter the chart by “Continent”.
Select Asia and Europe from the Choice Filter list. Click OK. Country Details chart shows population data of Asian and European countries.
|