-
Notifications
You must be signed in to change notification settings - Fork 205
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
Add support for Observable Plot? #484
Comments
Agreed @juba started https://github.com/juba/obsplot but has appears to have shifted focus to maintaining the pyobsplot. Perhaps we should revive his efforts. |
I just took a look at the I can only speak for myself, but I would be happy with a very plain R The
|
I can confirm that |
In a very raw and most basic form, here is a quick little attempt at an htmlwidget wrapper oplot. The design of Observable Plot does not translate well into htmlwidgets, since Plot uses functions rather than a |
In pyobsplot I sort of make a custom serialization of Plot declaration in Python to json. https://github.com/juba/pyobsplot/blob/main/src/pyobsplot/parsing.py It is then "deserialized" and run in JavaScript. Code is here: https://github.com/juba/pyobsplot/blob/main/packages/pyobsplot-js/parsing.js I also added a special handling of data attributes, to avoid duplication as they are often repeated in a |
I don't know if this is possible, but it would be really neat to have a tighter integration between R and Observable Plot as an htmlwidget.
It's currently possible to pass data to Observable in Quarto, and this is really powerful, but an htmlwidget would allow users to use Observable Plot from R code alone.
The text was updated successfully, but these errors were encountered: