usgs-makerspace / makerspace-sandbox

Some initial R code for playing with data processing (maybe some light visualization).
Other
0 stars 5 forks source link

EC view changes from demo #504

Open wdwatkins opened 4 years ago

wdwatkins commented 4 years ago

Tableau things:

Sharepoint things:

Data things:

mhines-usgs commented 4 years ago

on each of the checklist items/points for our discussion at 1230ct tableau things list: 1) no big deal, just waiting for data. not entirely sure if i can squeeze it into the same dropdown period but i have an idea and will try that before needing to check in again on that. just waiting for corrected data to show up in s3. (pipeline job seems to be failing) 2) done - now present in a hover over the symbol and the bin/class 3) not a big deal, just waiting to make other changes/additions before moving things around since the layout is the last part i would want to do to make sure i don't have to do it again. dashboard layout design is a bit clunky. 4) done - present on all dashboards, changed the yaxis label to match 5) i may just have to disable highlighting, or when i create the new dashboard with things moved around, need to disable all default 'actions' and re-implement specific actions i want. tableau tries to be very helpful but often you spend time battling the automatic things. 6) this is not possible until we actually have events for each application. there is nothing to make application name sets with until we have data we can use in a filter. so i suggest we shelve this. 7) no big deal, will do when I recreate dashboard after making suggested modifications. bundle with 3 above in my opinion. 8) not sure this is possible in tableau alone, might need to modify the data so that there are obvious flags to draw from first. this would also help with all the sets i've had to create/maintain in tableau. might be nice to push this forward to next year and address more holistically throughout the dashboard. 9) have not attempted this yet, not sure if it's possible but seems reasonable.

sharepoint things 1) is this requesting the limit or suggesting we impose a limit? we can impose a limit in sharepoint, right now it is set to 255 characters, but i have not done testing to see what is too much. can do. 2) yes, we can add a description field to show on hover, can do.

wdwatkins commented 4 years ago

@wdwatkins needs to fix the duplicate REGION field in the population percentage file

wdwatkins commented 4 years ago

One thing I forgot to add here—I think adding the date of the latest data came up during the demo. Is that an easy thing to do?

mhines-usgs commented 4 years ago

yeah i think so, basically i could look at one of the files that has the daily session data and just grab the max date?

wdwatkins commented 4 years ago

That should do it

mhines-usgs commented 4 years ago

manually updated the state_week_vs_year.parquet for now in s3, the job seems to fail often with the time out issue. i updated the ec dashboard on both tableau server instances but with the data changes i have to go repair a few things on the old views and copy over some of the changes i made on the ec dashboard over to the 'more detailed' dashboard.

wdwatkins commented 4 years ago

Yeah, I think adding anti-sample calls substantially increased the amount of data being pull from NWIS web. There is an option to cache calls on disk that I think can be added fairly easily that I want to try. That should eliminate duplicate API calls that happen when we rerun the job on the same day, and in some cases when the anti-sample method makes the same calls day after day since it has to retrieve data in small chunks.

I also have a PR in with the google analytics package that once resolved should let us use a 'slow fetch' option that should help with the 429 errors.

mhines-usgs commented 4 years ago

corresponding edits made to the more detailed views and pushed up to both tableau servers. going to do some documentation but if you have time to skim over the changes and if you have feedback or want to talk through them sometime tomorrow, feel free to throw a calendar event my way?

wdwatkins commented 4 years ago

Sounds good. I'll go through the 'metadata' page too, I think we may want to add to that for the EC view. Or otherwise have some text for Nate et al to refer too.

mhines-usgs commented 4 years ago

perfect, thank you!

mhines-usgs commented 4 years ago

specific thoughts on feedback

mhines-usgs commented 4 years ago
mhines-usgs commented 4 years ago

the checked off changes for the EC Dashboard are up on tableau.chs.usgs.gov - for some reason I'm unable to change the connection details at the moment (getting an error message) and push it to the tableau.usgs.gov server with the workbook open from the internal server. i'll try again tomorrow before reaching out to them for help :( that's the way i usually 'deploy' changes to both servers after making changes image

mhines-usgs commented 4 years ago

was able to push this up this morning. i'm going to do another task for gcmrc quick this morning before addressing the correlated changes needed in the other workbook, and adding to the documentation about how to edit data source paths and republish changes to both servers.

wdwatkins commented 4 years ago

Can you change the flagship apps trends Y axis to "Year-over-year percent change in visits"? And is it easy to make the actual numbers appear in the heat-table hover, in addition to the percent changes?

mhines-usgs commented 4 years ago

Yes to both. Assuming we want to do the same for all of those (IoW too?) across both workbooks?

wdwatkins commented 4 years ago

Some explanatory text for the geographic views:

Visits: Total visits per state during the specified time period. Tends to be affected by state population. Traffic share to population share ratio: The ratio of a state's share of visits over a time period and the state's share of population in 2019. Negative values indicate a state is underrepresented in visits compared to its population, positive numbers indicate a state is overrepresented compared to population. Previous 7 days vs average: Percent difference between the total visits per state over the last 7 days and the average 7-day total traffic for the last 365 days. Attempts to capture spikes in traffic from individual states. Negative numbers indicate below average (for the past 365 days) traffic, positive numbers above average. Does not account for seasonal patterns. This metric does not use the "Period" dropdown.

Can you make the dropdown go in this order too? And change the dropdown options to the titles here?

mhines-usgs commented 4 years ago

pushed above changes for explanatory text and names of views in the parameter selection to tableau.chs.usgs.gov but again hitting that error after not getting it earlier this morning on the tableau.usgs.gov server when I attempt to change to it. will try restarting before going to chs to get help/complain...

mhines-usgs commented 4 years ago

figured out the connection issue and all the checked off changes are now up on both servers