In the Control group of the Triggers section, there are blocks that initiate the execution of the connected block stack. Supported controls/objects are Maps, Buttons and Filter bar custom buttons
When [Button] emits [Event type] do
Initiate a blockchain execution when a button is clicked or when the mouse cursor hovers over it.
Configuration
Inputs | Description |
Object name | Select a Button control from the workbook |
Event type |
|
Supports
Feature | Description |
Embeds | Yes |
Reporting | Not supported |
Example: Toggle visibility of an object when button is clicked
|
Actions |
Dashboards can sometimes require additional guidance for users who haven't used the application before. One way to assist these users is by adding contextual information and explanations of KPIs directly on the dashboard. Incorporating a button to show and hide this information can be an effective method to enhance user experience.
Clicking on the button with name Show/hide Information Button will show the object/group with name Information if it's hidden and hide it if it's visible. This is done with the use of the not condition operator block that will change a True to False and False to True. |
Example: Clear filter in field when button is clicked
|
Actions |
Enabling users to quickly clear specific fields can enhance the user experience in guided analytics applications.
Clicking on the button with name Clear Customer ID Filters Button will clear the filters in the field Customer ID in the table Order. |
Example: Create image hover effect when button is hovered
|
When crafting pixel-perfect data storytelling workbooks with Astrato, enhancing user interaction responsiveness is crucial. A compelling way to do this is by displaying different images when a button is hovered over. |
Layer structure
|
Actions |
To implement this, create these objects:
Ensure that both the images and the button are centered aligned horizontally and vertically.
Set up three actions:
This setup ensures a dynamic and responsive user experience in your Astrato workbooks. |
When [Map] emits [Event type] do
Initiate a blockchain execution when a point on a Map is clicked or when the mouse cursor hovers over it.
Event parameter block contains additional parameter information from the emitted event. Needs to be placed inside the When block.
Configuration
Inputs | Description |
Object name | Select a Map visualisation from the workbook |
Event type |
|
Event parameters
Parameter | Description |
Dimension id | The id of the dimension of the data point |
Dimension Value | The value of the dimension of the data point |
Measure id | The id of the measure of the data point |
Measure Value | The value of the measure of the data point |
Left Position | The left postion on screen of the the data point. The position is given as a relative value between 0 and 100, indicating its relative location to the left of the sheet |
Top Position | The top postion on screen of the the data point. The position is given as a relative value between 0 and 100, indicating its relative location to the top of the sheet |
Layer name | The layer name of the data point |
Latitude | The latitude position of the data point |
Longitude | The longitude position of the data point |
Supports
Feature | Description |
Embeds | Yes |
Reporting | Not supported |
When [Filter bar] emits [Event type] do
Initiate a blockchain execution when a point on a custom button in the Filter bar is clicked or when the mouse cursor hovers over it.
Event parameter block contains additional parameter information from the emitted event. Needs to be placed inside the When block.
Configuration
Inputs | Description |
Object name | Select the Filter bar from the workbook |
Event type |
|
Event parameters
Parameter | Description |
Custom button name | The name of the custom button that is being clicked or hovered. |
Supports
Feature | Description |
Embeds | Yes |
Reporting | Not supported |