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

Feature -- Allow for multiple scatterplots #47

Merged
merged 1 commit into from
Aug 29, 2022

Conversation

gerstej9
Copy link
Contributor

What this PR does

  • Allows for plotId parameter in Scatterplot initialization
  • PlotId is incorporated into canvas, container, and svg classes and Id's
  • Parameter includes default value to maintain existing functionality
  • Removes console.log on line 18229 as it was running indefinitely in Storybook

Example of two plots on same page
image

Example of changed classes and ids
image

Copy link
Collaborator

@bmschmidt bmschmidt left a comment

Choose a reason for hiding this comment

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

Thanks for this, a very useful feature I have not gotten around to implementing and a sensible approach.

@bmschmidt bmschmidt merged commit b57e6a2 into nomic-ai:master Aug 29, 2022
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