Synchronizing components
Components may require synchronization that aids in visualizing, navigating and highlighting specific data.
How to synchronize the components?
To synchronize components you have to specify which event you want to synchronize between each component, as well as they have to use the same connector defined in the dataPool.
The events, that can be synchronized between components are:
Sync declaration
sync: {highlight: true}
The full example of synchronized components:
Dashboards.board('container', {dataPool: {connectors: [{id: 'Vitamin',type: 'CSV',options: {csv: `Food,Vitamin A,IronBeef Liver,6421,6.5Lamb Liver,2122,6.5Cod Liver Oil,1350,0.9Mackerel,388,1Tuna,214,0.6`,},}]},components: [{connector: {id: 'Vitamin'},sync: {visibility: true,highlight: true,extremes: true},cell: 'dashboard-col-0',type: 'Highcharts',columnAssignment: {Food: 'x','Vitamin A': 'value'}}, {cell: 'dashboard-col-1',connector: {id: 'Vitamin'},sync: {visibility: true,highlight: true,extremes: true},type: 'Highcharts',columnAssignment: {Food: 'x','Vitamin A': 'y'}}]});
Components sync compatibility
Component's type | highlight | extremes | visibility |
---|---|---|---|
HTML | no | no | no |
Highcharts | yes | yes | yes |
DataGrid | yes | yes | yes |
KPI | no | yes | no |