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