tetratech / baytrendsmap

Shiny app to create maps on-the-fly from output of the baytrends package.
https://tetratech.github.io/baytrendsmap/
MIT License
4 stars 2 forks source link

Cannot load csv file if not sorted by station #28

Closed jharcum closed 4 years ago

jharcum commented 4 years ago

Describe the bug App doesn't load user files not sorted by station.

to repeat Attached are 2 csv files, sorted by station and period name, respectively; otherwise they are the same data. the *sortBYstation.csv" file works and the other does not. chngGAM.zip

jharcum commented 4 years ago

cannot reproduce now. moved to on hold

leppott commented 4 years ago

If had an unsorted file the entries in the filters appeared in the order of the the file..

Modified filters to sort the entries for all files.

Two images below of unsorted station ids and the modified coded in server.R.

image

image

leppott commented 4 years ago

Also have to update server.R output$filter_x for each parameter by adding sort().

image

jharcum commented 4 years ago

Works now.