Metadata is one of the most important concepts when creating dashboards and widgets. Metadata is a piece of information that you can store in the variable payload.
With metadata, it is possible to dynamically change the behavior of the widget and how it displays the variable data. For example, it can change a map pin color or place a heat map bubble in another position, and more.
You can define your own metadata fields and use them in your Analysis or Application. Some metadata fields trigger specific widget behaviors or change how the widget displays the data.
info
Metadata has priority over customizations set in the widget edit screen. Some widgets provide an option to change this behavior.
For example, this article uses the color metadata field in the following JSON payload:
Some widgets such as Input Form, Dynamic Table, and others allow users to edit variable data through form fields. The following metadata can be used for custom behavior in these form fields:
Field
Description
Form field type
label
Displays a label instead of the variable value
Dropdown, Dropdown Multiple, Filtered Variables
end_date
Specifies the end of a date range. It accepts the date and time in the ISO 8601 format.
Calendar
start_date
Specifies the start of a date range. It accepts the date and time in the ISO 8601 format.
Calendar
type
Changes the box validation color. Accepts: "success", "danger", "error", "danger-light", "error-light", "info", "warning" and "dark".