Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternate approach for interactive version of figure 14 #22

Merged
merged 6 commits into from
May 14, 2024

Conversation

rlskoeser
Copy link
Owner

I've taken what you did with Altair and translated into ObservablePlot so we can put the two plots into an html page with a responsive layout. I have keyword search and toggles to filter by subscription period; I haven't added a tooltip yet - but I'm not sure which metrics are most meaningful to show.

I'm adding a new notebook that outputs the data files in the format used by the new interactive figure, and then the static html and csvs in an interactive folder under our figures folder.

I put it on the viz site so it's easier to preview, and to make sure the responsive styles are working the way I think. You can see how it looks here: https://viz.shakespeareandco.princeton.edu/2024/missingdata-specreading/#recommendation-scores

I thought I used the same data files that we used originally for the static figure in the article, but the titles don't seem quite the same; so we may want to update that. Because of the way this is implemented, it should be pretty easy to swap in different csv files if/when we want to update which recommendations we're displaying.

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@rlskoeser rlskoeser requested a review from ZoeLeBlanc May 14, 2024 14:29
Copy link
Collaborator

@ZoeLeBlanc ZoeLeBlanc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me!

@rlskoeser rlskoeser merged commit ca55860 into main May 14, 2024
2 checks passed
@rlskoeser rlskoeser deleted the alt-interactive-fig14 branch May 14, 2024 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants