Comments (8)
You probably need to provide a base_url
argument because vegawidget won't know where the data (csv or json) is located in relation to the spec. Or maybe it is sufficient to require that the relative path be specified in the spec?
from altair.
vegawidget is established
from altair.
good idea! If vega-embed is going to be used, then both vegalite and vega json specs could be rendered in a browser via R. Such a package would gain a lot of traction.
As of vega-embed 3, the $schema property of vegalite and vega specs are checked for, so major version changes for rendering will be taken care of.
For vega-lite 1 or vega 2 specs, the older, relevant vega-embed 2 version is still available and could be called separately, if so desired.
from altair.
Regarding the vega js dependency issue. If you split off the renderer from altair, I think it would be only natural to allow the renderer to move along with the vega js ecosystem and not with Altair. This will allow users to move on to newer json features as they come. This strategy would also require no updating of the dependencies as long as there is no major version change.
However, to allow for a harmonious interaction with the altair package, maybe you could expose an option or a function (e.g. altair_mode
) which would then strictly apply the dependencies as required by Altair.
from altair.
Since an htmlwidget package needs to have copies of the dependencies included, there will always be some delay with the latest js versions. While including different versions may be possible, I don't think the extra complication plus package size is likely worth it.
from altair.
This will probably also depend on how fast Altair will move forward in general. Maybe start out simple and wait for user feedback.
In any case, the versions included should be provided as an exposed function. This is important since the vegalite, vega and vega-embed documentation is not versioned.
from altair.
I think that we could expose such a function, and it would be helpful - if even for us :)
Starting a list at the top of this thread.
from altair.
Let's keep the URL issue in mind - I think this is a case, as you point out, where we should have the problem before we solve the problem.
from altair.
Related Issues (20)
- Disable max rows HOT 1
- update to Altair 4.1.0
- add github actions
- remove iris references
- Release altair 4.1.1
- Cannot go to the vega editor from an altair plot in Rstudio HOT 2
- update documentation HOT 2
- use Altair 4.2.0
- use vegawidget 0.4
- update actions for check and pkgdown HOT 1
- use CRAN version of vegawidget
- Release altair 4.2.1
- Fix CRAN problems
- fix vignette examples
- Release altair 4.2.2
- update actions
- update URL
- update documentation
- update to lastest (Python) Altair
- Release altair 4.2.3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from altair.