Skip to content

Updating source metadata

You can configure your source metadata by using the ChartFactor Studio's Metadata option on the top right corner of the dashboard page. See below:

image

The first time you use the Metadata option, it will have commented out code with sample definitions to guide you as shown below:

image

Here you see the _META_ variable. ChartFactor Studio uses this variable to obtain your custom metadata. A sample definition for the Austin 311 Calls dashboard looks like this:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
let _META_ = {
  "bigquery-public-data:austin_311.311_service_requests": {
    "count": {
      "label": "Calls"
    },
    "fields": {
      "council_district_code": {
        "label": "Council District Code"
      },
      "created_date": {
        "label": "Timestamp"
      },
      "street_name": {
        "label": "Street"
      },
      "complaint_description": {
        "label": "Complaint"
      }
    }
  }
}

Using the metadata object, you can not only define field labels but also field types such as MONEY and their currencies, time fields' granularities and their time zone and even derived fields. Refer to the Providers Metadata and Custom Metadata for more details.

Paste the metadata definition above into the metadata dialog, press the SAVE button and close the dialog as shown below.

image

After closing the dialog, your visualizations will render with the field labels and types specified in the metadata as shown below.

image