Embedded Dashboard Properties and Objects
This applies to: Visual Data Discovery
Properties can be passed as parameters to the createComponent method when embedding Symphony dashboards.
Here is a sample embedding "componentInstanceId":"<id>":
embedManager.createComponent('dashboard',
const componentConfig = {
"dashboardId": "<dashboard-ID>",
"componentInstanceId":"<component-instance-ID>",
}
);
The following table describes available options for these properties and objects.
Here is a sample embedding "type":
embedManager.createComponent('dashboard',
const componentConfig = {
"dashboardId": "<dashboard-ID>",
"componentInstanceId":"<component-instance-ID>",
"type":"dashboard",
}
);
The following table describes available options for these properties and objects.
| Property/Object | Default | Description |
|---|---|---|
"type":"dashboard"
|
The type of embedded Composer component. |
Here is a sample embedding "application":
embedManager.createComponent('dashboard',
const componentConfig = {
"dashboardId": "<dashboard-ID>",
"componentInstanceId":"<component-instance-ID>",
"type":"dashboard",
"application":{
"banner":false,
"logo":true
}
}
);
The following table describes available options for these properties and objects.
Here is a sample embedding "interactivityProfileName":
embedManager.createComponent('dashboard',
const componentConfig = {
"dashboardId": "<dashboard-ID>",
"componentInstanceId":"<component-instance-ID>",
"type":"dashboard",
"application":{
"banner":false,
"logo":true
}
"interactivityProfileName":"interactive",
}
);
The following table describes available options for these properties and objects.
Here is a sample embedding "interactivityOverrides":
embedManager.createComponent('dashboard',
const componentConfig = {
"dashboardId": "<dashboard-ID>",
"componentInstanceId":"<component-instance-ID>",
"type":"dashboard",
"application":{
"banner":false,
"logo":true
}
"interactivityProfileName":"interactive",
"interactivityOverrides":"<interactivity-overrides-ID>",
}
);
The following table describes available options for these properties and objects.
Here is a sample embedding "mode":
embedManager.createComponent('dashboard',
const componentConfig = {
"dashboardId": "<dashboard-ID>",
"componentInstanceId":"<component-instance-ID>",
"type":"dashboard",
"application":{
"banner":false,
"logo":true
}
"interactivityProfileName":"interactive",
"interactivityOverrides":"<interactivity-overrides-ID>",
"mode":"interactive",
}
);
The following table describes available options for these properties and objects.
Here is a sample embedding "theme":
embedManager.createComponent('dashboard',
const componentConfig = {
"dashboardId": "<dashboard-ID>",
"componentInstanceId":"<component-instance-ID>",
"type":"dashboard",
"application":{
"banner":false,
"logo":true
}
"interactivityProfileName":"interactive",
"interactivityOverrides":"<interactivity-overrides-ID>",
"mode":"interactive",
"theme":"modern",
}
);
The following table describes available options for these properties and objects.
| Property/Object | Default | Description |
|---|---|---|
"theme":"dark"
|
composer
|
The theme for the embedded dashboard. Valid values are Type: string |
Here is a sample embedding "editor":
embedManager.createComponent('dashboard',
const componentConfig = {
"dashboardId": "<dashboard-ID>",
"componentInstanceId":"<component-instance-ID>",
"type":"dashboard",
"application":{
"banner":false,
"logo":true
}
"interactivityProfileName":"interactive",
"interactivityOverrides":"<interactivity-overrides-ID>",
"mode":"interactive",
"theme":"modern",
"editor":{
"placement": "docRight"
}
}
);
The following table describes available options for these properties and objects.
| Property/Object | Default | Description |
|---|---|---|
"editor.placement":"docRight"
|
modals
|
Indicates where the dashboard editor appears. Valid editor placements are Type: string |
Here is a sample embedding "header":
embedManager.createComponent('dashboard',
const componentConfig = {
"dashboardId": "<dashboard-ID>",
"componentInstanceId":"<component-instance-ID>",
"type":"dashboard",
"application":{
"banner":false,
"logo":true
}
"interactivityProfileName":"interactive",
"interactivityOverrides":"<interactivity-overrides-ID>",
"mode":"interactive",
"theme":"modern",
"editor":{
"placement": "docRight"
}
"header": {
"title": "My Dash"
"showActions": false,
"showTitle": false,
"visible": false
}
}
);
The following table describes available options for these properties and objects.
Here is a sample embedding "intialFilters":
intialFilters: {
sourceId: "<source-id>"
timeFilter: {
from: "+$start_of_data",
to: "+$end_of_data",
timeField: "_saledate",
},
filters: [{
"operation": "BETWEEN"
"paths": "returns",
"value": [ 1, 25 ]
}]
}
The following table describes available options for these properties and objects.
| Property/Object | Default | Description |
|---|---|---|
initialFilters
|
none |
Allows you to pass initial filters to the specified dashboard. Pass parameters for Type: string |
applyFiltersStrategy
|
overrideSamePath
|
Use Use |
You can also refresh your data in the dashboard as needed.
| Method | Description |
|---|---|
component.refreshData()
|
Refreshes data in the dashboard when called. |