Example - Google Spreadsheet
Google Spreadsheet as a Table
Google Sheets are an easy and popular way to share spreadsheet data. Whilst publicly available Google Sheets could always be pulled using the URL content source, from v8.2.0, Universal Content Puller provides a dedicated Google Sheet content source to make using data from any publicly shared Google Sheet even easier.
Data can be pulled in CSV, JSON or HTML format. This will usually be followed by a transform into a Table. Where the Google sheet includes multiple individual sheets (layers or tabs), they be specified by gid or name.
Here we have pulled a sheet titled RWC 2015 Age and Cap Profiles. This is some stats about the 20 teams in the 2015 Rugby World Cup.
The sheet provides a list of teams, the total caps of the squad (a cap is awarded for each time a player appears for the national team), then a breakdown of players in each cohort of 10 caps. We can see that the All Blacks (New Zealand) have a total of 1648 caps with just one player having 90-99 caps. Meanwhile Italy and Wales each have 2 players with 90-99 caps.
If you look at the Google Sheet rather than the data here, you will see it is listed in order of team caps, with New Zealand at the top and Samoa at the bottom. Here we decided to list the teams alphabetically. If it were our own sheet, the easy solution would be to adjust the source. But we can't do that here, so we have used a Pipeline Content Transform in 2 steps. The first step extracts the CSV from the sheet with Table from CSV. The second step sorts by the country with Table Sorter. We then pick the headings to show and rows and columns to filter in the Table display.
It is actually a little more complex than that, but rather than describe it minute detail here you can justto copy the JSON and then it into UCP on your own site.
As a chart
We can also show the data as a chart using Universal Content Puller Charts. To prevent the chart becoming overwhelming, we just show country vs caps here. The detailed breakdown columns are sliced out of the table in the CSV transform before transposing the table so we can plot countries in our X-axis.
If you want more Google Sheets to experiment with, you can use a search query like: