gjmcn / to-vega Goto Github PK
View Code? Open in Web Editor NEWSimple JavaScript library for creating Vega-Lite specifications.
License: MIT License
Simple JavaScript library for creating Vega-Lite specifications.
License: MIT License
this looks awesome. Do you want to add a link to to-vega at https://vega.github.io/vega-lite/applications.html? Just send us a PR.
So could write e.g.
tv.setPlot(sp => vegalite(sp))
I.e. no need to use this.spec
and hence, can use arrow function.
I'd like to see whether to-vega could be a recommended way to write Vega-Lite in JS. To recommend it fully, we need to make sure that it is a) stable and b) feature complete. I was wondering what your thoughts on completeness are. Are there things expressible in Vega-Lite but not in to-vega? How do you plan to ensure feature compatibility in the future? Do you think it would make sense to generate the API automatically from our Typescript typings (like Altair is generated from the JSON schema).
See discussion in vega/vega-lite#2280
vegalite = require("vega-embed@3")
You get tooltips and action links this way.
Right now, marks (e.g. bar) and encodings (e.g. x) are in the same namespace. I think it would be good to separate them like in Altair.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.