Subscribe to the store. Setup dataVizData and then fetch years and months data
Unsubscribe from the store
Handles a repeated Turbo visit to the dashboard page.
Triggered when the years and months data is loaded. Uses a document fragment to fully create the years buttons before removing the load button and adding all the new years buttons. The last button is set as selected
Triggered by the store whenever any store data changes. Sets us the store when yearsAndMonths data has been set following the fetch statement
Ignores year if already clicked. Set the months data for the selected year. Set the last month as selected in the store and gives the class selected to the clicked year.
Fetch the data for years and months.