Visualize Live Mocean Data in Tableau

Jerod Johnson
Jerod Johnson
Director, Technology Evangelism
Use CData Tableau Connectors and Tableau Desktop to visualize live Mocean data.

Tableau is a visual analytics platform transforming the way businesses use data to solve problems. When paired with the CData API Driver for Tableau, you can easily get access to live Mocean data within Tableau. This article shows how to connect to Mocean in Tableau and build a simple chart.

The CData Tableau Connectors enable high-speed access to live Mocean data in Tableau. Once you install the connector, you simply authenticate with Mocean and you can immediately start building responsive, dynamic visualizations and dashboards. By surfacing Mocean data using native Tableau data types and handling complex filters, aggregations, & other operations automatically, CData Tableau Connectors grant seamless access to Mocean data.

NOTE: The CData Tableau Connectors require Tableau 2020.3 or higher. If you are using an older version of Tableau, you will need to use the CData JDBC Driver.

Connect to Mocean in Tableau

Open Tableau and click More under Connect -> To a Server. Select "Mocean by CData," then configure the connection and click "Sign In."

Using API Key Authentication

Mocean uses API key authentication to control access to the API. To obtain an API Key:

  1. Log in to your Mocean account at https://dashboard.moceanapi.com
  2. Navigate to your account settings or API credentials section
  3. Copy your API Key

After obtaining your API Key, set the following connection properties:

  • AuthScheme: Set this to APIKey.
Set the following in the ProfileSettings connection property:
  • APIKey: Set this to your Mocean API Key. This is transmitted as a Bearer token in the Authorization header.

Example Connection String

Profile=C:\profiles\Mocean.apip;AuthScheme=APIKey;ProfileSettings='APIKey=your_api_key';

Connecting to Mocean

Once the authentication is configured, you can connect to Mocean and query data from any of the available tables such as AccountBalance, AccountPricing, MessageStatus, and NumberLookup.

Discover Schemas and Query Data

  1. Select CData from the Database pull-down menu.
  2. Select API from the Schema pull-down menu.
  3. Drag the tables and views you wish to visualize onto the join area. You can include multiple tables.
  4. Select Update Now or Automatically Update. Update Now lets you preview the first 10,000 rows of the data source (or enter the number of rows you want to see in the Rows text box). Automatically Update automatically reflects the changes in the preview area.
  5. Click the tab for your worksheet. Columns are listed as Dimensions and Measures, depending on the data type. The CData Tableau Connector discovers data types automatically, allowing you to leverage the powerful data processing and visualization features of Tableau.
  6. Drag a field from the Dimensions or Measures area to Rows or Columns. Tableau creates column or row headers.
  7. Select one of the chart types from the Show Me tab. Tableau displays the chart type that you selected.

Using the CData API Driver for Tableau with Tableau, you can easily create robust visualizations and reports on Mocean data. Download a free, 30-day trial and get started today.

Ready to get started?

Connect to live data from Mocean with the API Driver

Connect to Mocean