This repo contains the code for a scooter and bikeshare app that could interface with Remix and allows people to investigate usage and estimated demand.
0
stars
0
forks
source link
Change the order that maps get displayed in the DataVisualization page #7
Currently in DataVisualization.js the maps that get displayed are determined by the mapsToDisplay state variable, which is an array of variable names. When a user checks a new variable, the variable name gets appended to the end of mapsToDisplay and the map is generated at the end. This ordering might not be the most intuitive since users would have to scroll to see the newest map. Also, the order of the maps won't match the checkboxes. Some alternative ideas include
append new variables to the top of mapsToDisplay so the maps display at the top
have the map order match the order of variables in the checkbox question
Currently in
DataVisualization.js
the maps that get displayed are determined by themapsToDisplay
state variable, which is an array of variable names. When a user checks a new variable, the variable name gets appended to the end ofmapsToDisplay
and the map is generated at the end. This ordering might not be the most intuitive since users would have to scroll to see the newest map. Also, the order of the maps won't match the checkboxes. Some alternative ideas includemapsToDisplay
so the maps display at the top