WebPart charts have been, for some reason, removed from SharePoint 2013 (including online) onwards. Probably because Microsoft thought that having Excel Web Parts Charts is a better idea. It may well be, but Excel Web Part Charts can’t use Sharepoint lists directly. Fortunately, there is a number of options to enable us to use Sharepoint lists and display their information on the chart.
All around, business executives depend widely on information and investigation for basic leadership. With the gigantic measure of information that is being produced by people, organizations, frameworks and so forth., it is winding up noticeably progressively complex for officials to bode well from the colossal information that is available to them. Encourage, information alone is ordinarily not valuable to the leaders unless it is broke down, deciphered, sorted out and introduced in an outwardly engaging way. A great deal of people and organizations make utilization of assorted perception instruments to make noteworthy diagrams. While there are various apparatuses accessible in the market for information representation, Google Charts emerges from multiple points of view.
Below are two screenshots representing a table of data with numbers and a visual representation that table.
Google Charts, when integrated with SharePoint, can be immensely useful to business executives and other knowledge workers to dramatically improve their ability to comprehend and present information utilizing interesting visualizations. Data can be visualized in SharePoint in different ways. Below are some of the options:
- Chart Web Part (Depreciated from SharePoint 2013 onwards)
Integrating Google Charts in Sharepoint
Follow these steps to visualise data using Google Charts API in SharePoint.
- Log in to Office 365 and navigate to your SharePoint site.
- The first step is to create a web page in SharePoint where you intend to showcase Google web charts. Below is the process to create a web page in SharePoint.
- Click on the ‘Settings’ icon and then select ‘Add a page’. Give a preferred name to the web page and save the page. In this illustration, we have named the web page as ‘Charts Demo’.
- The next step is to create a new ‘Custom List’. Here’s the process to create a ‘Custom List’: Click on the ‘Settings’ icon available on the top right corner of your browser and then select the option ‘Add an app’.
- Then click on the ‘Custom List’ component displayed on the Site Contents screen.
- Provide a unique name to the custom list. Here, we have named the custom list as ‘SalesData’.
- Visit your ‘Site Contents’ page by clicking on the Settings > Site Contents and ‘SalesData’ tab and then edit the ‘custom list’ as shown below.
- Rename the title column depending on your preference. In this case, we have renamed it as ‘Month’.
- Click on the ‘+’ button to add new columns (number type). Here, we have added three new columns titled ‘Value1’, ‘Value2’ & ‘Value3’.
- Subsequently, you can add data to the list by clicking on ‘new item’ or ‘edit’ options.
- Add ‘SalesData’ custom list to the ‘Charts Demo’ page.
- Go the ‘Charts Demo’ page and click on the ‘Edit’ option available on the right side of the page.
- Click on the ‘Insert’ tab and then select ‘Web Part’ and select the list, click on the ‘Add’ button and save the web page.
There are two methods to include Google Charts API in SharePoint
- Method 1 – Download the dependencies and save these in ‘Site Content’ > ‘Site Assets’
- Method 2 – Include dependencies directly using the below URLs. In our example, we have followed this method.
Adding the code snippet to the web page in SharePoint
- Go to the ‘Charts Demo’ page and click on the ‘Edit’ option (top right side).
- Add the ‘Script Editor’ to the page by following the below instructions (refer to the below screenshot).
- Click on the ‘Edit Web Part’ option as shown below.
- Copy and paste the code snippet in the ‘Web Part’ and click on the ‘Insert’ button and save the page.
- After the page is saved, the screen will automatically reload and display the chart based on the data. Below are a few sample graphs generated using Google Charts.