Giter Club home page Giter Club logo

Comments (6)

domoritz avatar domoritz commented on May 20, 2024

@arvind What is the best way to load a vega spec into lyra?

from polestar.

arvind avatar arvind commented on May 20, 2024

Hi Dom, we added an HTML5 message API to Lyra to accept a Vega specification from an external application. Some high-level details about it can be found here.

Basically, you would open a Lyra window (window.open) and use postMessage to send it a message of the form {spec: ...}. On receiving the message, Lyra will try to parse the spec and re-create it in the interface. Note: Lyra doesn't support everything Vega does, and certainly not the additions y'all have made in v1.4, so expect it to be a lossy import. Feel free to create issues for things that don't import losslessly (that's a fun word) and I can see if I can assign it to an undergrad to work on.

Let me know if you run into any issues, and I'm happy to help.

from polestar.

arvind avatar arvind commented on May 20, 2024

You can find an example of postMessaging to Lyra with our Sitar prototype.

from polestar.

domoritz avatar domoritz commented on May 20, 2024

Implemented

from polestar.

kanitw avatar kanitw commented on May 20, 2024

People were complaining that this is broken sometimes.

from polestar.

domoritz avatar domoritz commented on May 20, 2024

Yes, It is is very unstable because we may not send what lyra expects and
the vega versions may not match. We need to work on compatibility between
our tools! That's probably a good topic for another meeting. @jheer

On Wed, Apr 22, 2015 at 10:19 PM, Kanit Wongsuphasawat <
[email protected]> wrote:

People were complaining that this is broken sometimes.


Reply to this email directly or view it on GitHub
#7 (comment).

from polestar.

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.