Alternate approach for interactive version of figure 14 #22
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.