简体   繁体   中英

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.

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.

Specifying interactivity in Vega-Lite will be possible as of some time in mid-2017. Here is the announcement, including a paper and a demo video: Vega-Lite: A Grammar of Interactive Graphics

As the accepted answer said: No. Let me provide examples:

  • SVG graphics support: You can't choose how to render your chart (image, svg) in Vega Lite.
  • Week timeunit support: You can set timeunit to "week" only in Vega, this missing property is particularly frustrating.
  • Select drop-down lists: Adding drop down lists that update chart upon selection are available only in Vega.
  • Some Donut chart styling properties: Vega privdes more options to customize the look of the Donut chart.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM