Page History
...
yellowfin.loadReport({ //Some code to execute when the report has loaded console.log(report.name + ‘ has finished loading’); |
Interactions
The interactions object enables you to define which interactions should be available on a particular visualization of a report. This lets you tell the Yellowfin renderer which functionality you want the user to be able to use within that visualization.
If there are multiple elements representing the same report and you wish to disable an interaction, you must disable it on all the elements you are displaying. For example, if you disabled drill down on the first element and then did not on the second, the user would still be able to drill down on the second element.
By default, any interaction that is not explicitly set to false is treated as enabled and will display if the report allows it.
drillDown
Allows drill down functionality to be disabled.
drillAnywhere
Allows drill anywhere functionality to be disabled.
drillThrough
Allows drill through functionality to be disabled.
unitSelection
Allows unit selection functionality to be disabled.
brushing
Allows brushing functionality to be disabled.
timeSlider
Allows the timeSlider functionality to be disabled.
drillBreadcrumbs
Allows drill breadcrumb functionality to be disabled
seriesSelection
Allows seriesSelection functionality to be disabled
annotations
Allows annotations to be disabled.
Interaction examples
To disable all user interactivity on the report when using loadReport:
yellowfin.loadReport({ reportId: ‘a report id’, interactions: { drillDown: false, drillAnywhere: false, drillThrough: false, unitSelection: false, brushing: false, timeSlider: false, drillBreadcrumbs: false, seriesSelection: false, annotations: false }, element: document.querySelector(‘#reportElement’) }). |
Or when using the createReportElement function:
report.createReportElement({ interactions: { drillDown: false, drillAnywhere: false, drillThrough: false, unitSelection: false, brushing: false, timeSlider: false, drillBreadcrumbs: false, seriesSelection: false, annotations: false } }); |
loadDashboard(dashboardOptions)
...