Coder Social home page Coder Social logo

Comments (8)

g3o2 avatar g3o2 commented on May 29, 2024 1

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.

ijlyttle avatar ijlyttle commented on May 29, 2024 1

vegawidget is established

from altair.

g3o2 avatar g3o2 commented on May 29, 2024

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.

g3o2 avatar g3o2 commented on May 29, 2024

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.

AliciaSchep avatar AliciaSchep commented on May 29, 2024

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.

g3o2 avatar g3o2 commented on May 29, 2024

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.

ijlyttle avatar ijlyttle commented on May 29, 2024

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.

ijlyttle avatar ijlyttle commented on May 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.