Data provider |
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.
NOTE: You can click the Refresh button on the right to retrieve the latest Views. Finally, you can view the data present in the List by clicking View Data. To connect to a Microsoft SQL Server Database and provide data to the chart, follow the steps below:
NOTE: Provide period (.) to access the local Microsoft SQL server.
NOTE: Using Result of a 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 a SQL Query option? When you select the Result of a SQL Query option, two boxes, labeled Query Variables and Query, appear below the option. The limitations are:
For example: SELECT * FROM Salary WHERE emp_id = (SELECT DISTINCT emp_id FROM Employee GROUP BY emp_id)
For example: SELECT * FROM Salary WHERE emp_name IN (SELECT emp_name INTO x FROM Employee WHERE emp_id = 1201)
For example: SELECT TOP 100 PERCENT ShipCountry AS Country, COUNT(OrderId) AS Orders FROM dbo.FC_Orders GROUP BY ShipCountry ORDER BY COUNT(OrderId) DESC
For Example: SELECT emp_name FROM Employee WHERE emp_id = (SELECT * FROM Salary WHERE emp_id = 1021);
For example: SELECT * FROM Salary WHERE emp_id = (SELECT DISTINCT emp_id FROM Employee GROUP BY emp_id)
For example: SELECT emp_name FROM employ WHERE EXISTS (SELECT * FROM salary WHERE empid=1211)
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 a 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 a SQL Query option?
The limitations are:
For example: SELECT * FROM Salary WHERE emp_id = (SELECT DISTINCT emp_id FROM Employee GROUP BY emp_id)
For example: SELECT * FROM Salary WHERE emp_name IN (SELECT emp_name INTO x FROM Employee WHERE emp_id = 1201)
For example: SELECT TOP 100 PERCENT ShipCountry AS Country, COUNT(OrderId) AS Orders FROM dbo.FC_Orders GROUP BY ShipCountry ORDER BY COUNT(OrderId) DESC
For Example: SELECT emp_name FROM Employee WHERE emp_id = (SELECT * FROM Salary WHERE emp_id = 1021);
For example: SELECT * FROM Salary WHERE emp_id = (SELECT DISTINCT emp_id FROM Employee GROUP BY emp_id)
For example: SELECT emp_name FROM employ WHERE EXISTS (SELECT * FROM salary WHERE empid=1211)
When you select the Result of a 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 Catalog, follow the steps below:
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. To connect to a uploaded Microsoft Excel file and use its data, follow the steps below:
NOTE: To get access to the Excel files, you would need to configure Shared Services in your SharePoint server and put the Excel files in the Trusted Location of your SharePoint server. Excel services are only offered on SharePoint enterprise version. For more details see http://sharepoint.microsoft.com/en-us/buy/pages/editions-comparison.aspx Finally, you can view the data present in the List by clicking View Data. |