Comments (6)
@arvind What is the best way to load a vega spec into lyra?
from polestar.
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.
You can find an example of postMessaging to Lyra with our Sitar prototype.
from polestar.
Implemented
from polestar.
People were complaining that this is broken sometimes.
from polestar.
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)
- Loading Budget 2016 data breaks the schema viewer UI HOT 2
- Crimea data not a good sample data set HOT 1
- Use dragula
- Build seems to be broken HOT 8
- Consider moving "report an issue" to the top bar, making it easier to report problems.
- Is it possible to share or export visualizations made in polestar? HOT 4
- Undo button while Data change HOT 1
- Glitch when we drop Q field to row/column HOT 1
- Revamp build system
- Allow sort when there is 1-to-1 mapping between N and Q? HOT 1
- Show better error for empty columns on the first row HOT 4
- Long field-info blocks remove button HOT 1
- COUNT field is being parsed two times when dropped to a shelf HOT 1
- Refactor Spec Service to be a class with proper test
- Clean up filter
- Set useRawDomain to false by default HOT 1
- Filter Time Broken
- Ability to export from Polestar (like Lyra's) HOT 1
- gulp serve failed on master branch on windows 10 HOT 1
- Potential to get this running against latest jupyterlab? HOT 1
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 polestar.