Configure Source |
Selecting the data source for a chart is the first step to create a chart. Collabion Charts for SharePoint allows you to create charts using data from various types of data providers. You can choose one of the following data providers: The steps for getting data from a data source can vary depending on the type of data provider that you are using. Learn how to:
How to select data from SharePoint List To connect your SharePoint List and provide data to the chart, follow the steps given below:
NOTE: You can click the Refresh button on the right to retrieve the latest SharePoint Lists and Views. Finally, you can view the data present in the List by clicking View Data. You can connect to Microsoft SQL Server Database and provide data to the chart using the following two modes:
Connecting through SQL Server Authentication When using SQL Server Authentication, you must provide your credentials (User name and password) every time you connect. This is the default authentication mode. To connect through SQL Server Authentication mode, follow the steps below:
The wizard with the above components is shown below: Connecting through Windows Authentication When connecting through Windows Authentication mode, your identity is confirmed by Windows. SQL Server does not ask for the password, and does not perform the identity validation. To connect through Windows Authentication mode, follow the steps below:
When this mode is selected the wizard appears as shown below: Connecting through Domain Authentication When connecting through Domain Authentication mode, you need to log on to the same Domain as the SQL Server to access its data. To connect through Domain Authentication mode, follow the steps below:
The wizard with the above components is shown below: How to use the Table option? When you select the Table option, the Select data table drop-down list appears below the option. It contains the list of available database tables. Choose the required table from the list. NOTE: You can click the Refresh button on the right to retrieve the latest tables. Finally, click View Data to view the retrieved data. How to use the View option? When you select the View option, the Select view drop-down list appears below the option. It contains the list of available database views. Choose the required view from the list. NOTE: You can click the Refresh button on the right to retrieve the latest views. Finally, click View Data to view the retrieved data. How to use the Result of an SQL Query option? When you select the Result of an SQL Query option, two boxes, labeled Query Variables and Query, appear below the option. To use SQL as the data source you need to do the following:
For example, in the sample SQL Query below, we join data from two tables and get name and generated by sales managers. SELECT TOP 100 PERCENT EMPLOYEE_MASTER.ID, EMPLOYEE_MASTER.NAME, SUM(SALES_DETAILS.AMOUNT) You can optionally make use of the Query Variables box to declare variables with predefined values. These variables can then be used as part of your SQL Query. For example, in the Query Variables box, you enter the following: DECLARE @AGE_LIMIT int Next, in the Query box you use this as: SELECT NAME, ADDRESS, PHONE, DONATION FROM VISITORS Finally, click View Data to view the retrieved data. NEXT: Pick data fields from the Select Fields page. To connect to a Oracle Database and provide data to the chart, follow the steps below:
NOTE: Using Result of an SQL Query you can retrieve specific data based on a specific criteria. Here, you can make use of the advanced features of SQL Query. How to use the Table option? When you select the Table option, the Select data table drop-down list appears below the option. It contains the list of available database tables. Choose the required table from the list. NOTE: You can click the Refresh button on the right to retrieve the latest Tables. Finally, click View Data to view the retrieved data. How to use the Result of an SQL Query option?
When you select the Result of an SQL Query option, two boxes, labeled Query Variables and Query, appear below the option. Here, you need to do the following:
For example, in the sample SQL Query below, we join data from two tables and get name and generated by sales managers. SELECT EMPLOYEE_MASTER.ID, EMPLOYEE_MASTER.NAME, SUM(SALES_DETAILS.AMOUNT)
For example, in the Query Variables box you enter the following: DECLARE @AGE_LIMIT int Next, in the Query box you use this as: SELECT NAME, ADDRESS, PHONE, DONATION FROM VISITORS Finally, click View Data to view the retrieved data. NEXT: Pick data fields from the Select Fields page.
You may have your data in a text or a CSV file. You may have copied data from a Web page, a spread-sheet, etc. To use the data from the text or CSV file or to paste and use the copied data, follow the steps below:
NOTE: The first line of the CSV data present in your file or in the data you have pasted is considered as the header row. The header row, in a CSV data, contains the names of the data series. To use data from Business Data Connectivity, follow the steps below:
NOTE: You can click the Refresh button on the right to retrieve the latest list of External System and Entity. Finally, you can view the data present in the List by clicking View Data. NEXT: Pick data fields from the Select Fields page. You may have uploaded Microsoft Excel Spreadsheet documents which contain data for charts on your SharePoint site or you may have such files stored in external systems on your network. To connect to a Microsoft Excel file uploaded on your SharePoint document library and use its data, follow the steps below:
To connect to a Microsoft Excel file uploaded on an external location within your network and use its data, follow the steps below:
This option allows you to fetch data from List View Web Part and Business Data List Web Part present on the same page where you intend to embed the Collabion Chart Web Part. Finally, click Next to go to the Select Fields section of the Chart Wizard. To use data from other data sources using ODBC connection, follow the steps below: Finally, you can view the data present in the ODBC Data Source by clicking View Data. |