Subscribe to the store. Debounces the method for handling window resizes
Unsubscribe from the store
Checks if the visualisation has been created yet
Creates a new instance of the LineChart class if not created, otherwise returns the instance of the class
Handles a repeated Turbo visit to the dashboard page.
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.
When the context is selected the data visualisation will either be creted or updated