feat: support 2-layered scatter plot - #100
Conversation
|
@krishnanand5 It's PageUp or PageDown key to switch between layers in the example. In the smoothed line layer, you need to use the autoplay key because it is a continuous line. |
|
@krishnanand5 -- Actually, the second layer is different from the typical "line" graph where we can use LeftArrow or RightArrow keys. I think we will have to revisit the property value name here if we use "line" for both "line graph" and "smoothed line" which needs to be distinguished from one another. |
|
@krishnanand5 Take a look at this line. You need to do:
|
Description
This PR aims to add demonstrations of how users can leverage Maidr to create double-layered scatterplots.
Type of Change
Checklist
Pull Request
Description
This PR aims to include examples of how double-layered scatter plots can be created using maidr
Related Issues
#85
Changes Made
This is a draft PR that has the new 2-layered scatterplot example. As the example is still in development phase, I have included the html generation as part of the example. Additionally, the
_inject_plotmethod has been modified to accept a flag calledhtml. If set toTrue, the_inject_plotmethod will return the bare html for the plot. The default value isFalseand if the flag is set toFalse, the iframe element containing the plot will be returned.Screenshots (if applicable)
Checklist
ManualTestingProcess.md, and all tests related to this pull request pass.Additional Notes
I am encountering the following issues by leveraging the current py-binder and upstream dependancies.
I have this error showing up on DevTools when the html is validated:

Whilst the secondary plot toggle seems to be an issue on the upstream repository, I would like to know if any additional changes should be done on the py-binder to activate highlighting of scatterplot components.