Constructor
new DataVisualisationController()
Extends
- Controller
Methods
connect()
Subscribe to the store. Debounces the method for handling window resizes
disconnect()
Unsubscribe from the store
isDataVizEmpty()
Checks if the visualisation has been created yet
lineChart()
Creates a new instance of the LineChart class if not created, otherwise returns the instance of the class
reconnect()
Handles a repeated Turbo visit to the dashboard page.
resize()
Handles a resize of the screen by width but ignores height changes. Deletes the current visualisation and the instance of the LineChart class so it will be created from scratch again.
storeUpdated()
When the context is selected the data visualisation will either be creted or updated