We should use a trustworthy web data connector.
There are sample web data connectors available and written by tableau.
1. Facebook Sample Connector
2. Googlesheets Sample Connector
3. Incremental Update Sample Connector
4. JSON Sample Connector
5. Socrata Sample Connector
6. XML Sample Connector
A web data connector uses REST API and converts the data to JSON and passes it to tableau.
Example: Setting up the environment
We need git and npm (node js package manager and node js installed)
Get the WDC SDK (web data connector software development kit)
Open a terminal in the directory where you want to download the WDC SDK. Then run the following command to clone the WDC git repository:
git clone https://github.com/tableau/webdataconnector.git
Change to the directory where you downloaded the repository:
Install dependencies with npm:
npm install --production
Start the test web server:
Open a browser and navigate to the following URL:
After that, we can see the simulator screen on our web browser.
Checkout Tableau Server Tutorial
Trying the sample
In the WDC URL field, confirm that the URL is set to the sample USGS Earthquake Data connector:
Click the Start Interactive Phase button to display the user interface for the earthquake WDC.
Click the Get Earthquake Data button.
Click the Fetch Table Data button to download the data and display it in a table.
Related Page: How To Build Your First Advanced Dashboard In Tableau?
1. First create a new file named
earthquakeWDC.html and save it in the top-level directory of the webdataconnector repository.
earthquakeWDC.js and save it in top level directory
Create an event listener for the UI button in Html page.
WDC will get data in JSON format and pass it to the tableau. So let’s create schema for that.
3. Now we are all set. Save all and start the server by typing npm start in cmd
4. Open the browser and go to
Checkout Tableau Interview Questions
IF everything works fine when we click the Get Earthquake data button we should see the result.
Now pass this to tableau.
On the start page, in the Connect pane,
click More Servers… > Web Data Connector.
If everything works fine, then we should get the visualization
Here we have successfully obtained the data and put it into a tableau.
|Data Visualization and Dashboarding Fundamentals|
Stay updated with our newsletter, packed with Tutorials, Interview Questions, How-to's, Tips & Tricks, Latest Trends & Updates, and more ➤ Straight to your inbox!
|Tableau Training||Jun 03 to Jun 18|
|Tableau Training||Jun 06 to Jun 21|
|Tableau Training||Jun 10 to Jun 25|
|Tableau Training||Jun 13 to Jun 28|
Viswanath is a passionate content writer of Mindmajix. He has expertise in Trending Domains like Data Science, Artificial Intelligence, Machine Learning, Blockchain, etc. His articles help the learners to get insights about the Domain. You can reach him on Linkedin
Copyright © 2013 - 2023 MindMajix Technologies