Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Vega-Lite provide all the features that Vega provides?

I am trying to develop an interactive chart using Vega-Lite but I am not able to find any documentation that refers to interactive chart, mainly eventlisteners.

So, wanted to know if Vega-Lite has that capability.

Please help me here as I am a newbie and really need to develop an interactive chart preferably using Vega-Lite, if possible; otherwise I will go with Vega.

like image 549
JVM Avatar asked Feb 09 '16 23:02

JVM


People also ask

What is the difference between Vega and Vega-Lite?

Vega is a visualization grammar that allows users to describe visualizations in JSON and render it using SVG or Canvas. Vega-lite is a higher-level language built on top of Vega that automates some constructions and makes the JSON specification significantly shorter.

What is Vega-Lite used for?

Vega-Lite is a high-level visualization grammar. It provides a concise JSON syntax for supporting rapid generation of visualizations to support analysis. Vega-Lite support interactive multi-view graphics.

What is the license for Vega-Lite?

A permissive license similar to the BSD 2-Clause License, but with a 3rd clause that prohibits others from using the name of the copyright holder or its contributors to promote derived products without written consent.


1 Answers

No. Vega supports everything that vega-lite does, as vega-lite is compiled into vega code. However, vega-lite does not support everything that vega does.

However, if you want to use vega-lite, but want to take advantage of a feature available only in vega (like interactivity), you can start with vega-lite code, convert it into vega code (the online vega editor allows this) and then continue editing the vega code.

like image 110
user2461797 Avatar answered Sep 29 '22 00:09

user2461797