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

Plotly #2

Merged
merged 4 commits into from
Jul 31, 2024
Merged

Plotly #2

merged 4 commits into from
Jul 31, 2024

Conversation

hillalex
Copy link
Member

This PR:

  • migrates from recharts to Plotly, since recharts just doesn't contain enough plot types, including contour plots
  • removes hard-coded values, to make the sidebar and graphs entirely driven by app state/config

// Read the json data file data.json
const fileContents = await fs.readFile(jsonDirectory + "/res.json", "utf8");
// Parse the json data file contents into a json object
const fileContents = await fs.readFile([jsonDirectory, "legacy", "infection_history", "res.json"].join("/"), "utf8");
Copy link
Member Author

Choose a reason for hiding this comment

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

need to set up routes so that this data is returned according to route params

@hillalex hillalex merged commit 256c18d into main Jul 31, 2024
2 checks passed
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.

1 participant