edit-icon download-icon

Widget interaction

Last Updated: Aug 06, 2018

Widgets can interact with each other through related callback IDs. By using callback IDs, if you click a widget, data of a widget with a corresponding callback ID will change accordingly.

Using a timeline widget as an example, with a callback ID, after you click a timestamp the map widget displays detailed information of this timestamp.



Set a callback ID

A callback ID can be considered as a parameter variable that is used to control the transmission of parameters between widgets, and realize interactions between them (that is, if data of one widget is updated, other widgets with the same callback ID are also updated).

Note: Callback ID is not supported if the Data Source Type is static data or a CSV file.

For instance, if you click a scattered point in a map, click a row on a list, or select a time point on a time table, the system temporarily stores the designated Callback ID, for example, “name”, into the “name” variable.


Set variable input

When the Data Source Type is SQL or API, you can directly input the variable.

select :name as valueselect A from table where year = :name

If you are using an API data source, the system directly assigns value to the variable parameters with the same name.

Thank you! We've received your feedback.