Questions tagged [vega-lite]

Vega-Lite is a high-level grammar of interactive graphics. It provides a concise JSON syntax for rapidly generating visualizations to support analysis. Vega-Lite specifications can be compiled to Vega specifications.

Documentation: https://vega.github.io/vega-lite/

Bug Report: https://github.com/vega/vega-lite/issues

Community Mailing List: https://groups.google.com/forum/#!forum/vega-js

1224 questions
0
votes
0 answers

Vega visualization remove empty cells from filtered matrix

I am attempting to craft a vega visualization which presents sub-plots in a matrix and has the capability to filter the rows and/or columns so only a subset are displayed. When I apply the filter, only the marks which match the filter are being…
mabcb7
  • 1
  • 2
0
votes
1 answer

How to use the Vegas visualization within a scala-spark jupyter notebook

When using the scala kernel with Vegas we see the nice charts But when switching to the scala-spark kernel the imports no longer work: What is the way to fix the imports for the spark kernel?
WestCoastProjects
  • 58,982
  • 91
  • 316
  • 560
0
votes
0 answers

Vega-lite Line chart order of x axis

My data: (12) [{…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}]0: {index: 0, month: "Jan", yield: 1.1864614990387585, Symbol(vega_id): 1}1: {index: 1, month: "Feb", yield: 2.1219813590422714, Symbol(vega_id): 2}2: {index: 2, month:…
forkerino
  • 123
  • 9
0
votes
1 answer

How I can change Vega schema dynamically

I have following code in Vega lite. I want to change transform filter 1850 to 2000. Please suggest how I can Change transform filter of schema. If possible is there any sample example for dynamic data change and update view. Data for population…
Vishal Bedre
  • 119
  • 1
  • 8
0
votes
1 answer

How to add legend for single or multi series chart in Vega Lite?

How do I add a legend to a basic chart in Vega? I'm using Vega in the web app where I want all my charts to include a legend even if its a single series. i.e in Google Sheets it looks like
Kenneth Truong
  • 3,882
  • 3
  • 28
  • 47
0
votes
1 answer

Sorting for unioned domains in vega-lite?

Playing with layers, I can't find a reliable way to sort values y dimension by x ("b" field value). I tried to configure "sort" field for "y" encoding, I get domainSortDropped error. That's OK, but maybe there's a way to avoid it somehow by…
Devgru
  • 15
  • 2
0
votes
2 answers

Is it possible to make trellis layered plot with vega-lite or vega

I would like to know if vega-Lite or Vega support making trellis visualizations having an extra layer? I'm able to make both visualizations type but not combine them. My issue is that I would like to be able to save all layered figures at once…
0
votes
1 answer

Why a simple copy past of spec from Vega editor doesn't work locally?

I have this spec in Vega Editor that work : { "$schema": "https://vega.github.io/schema/vega/v3.0.json", "width": 1, "height": 1, "padding": "auto", "data": [ { "name": "source", "values": [ {"name":…
guks88
  • 13
  • 4
0
votes
1 answer

Unable to launch vega-editor

The vega-editor allows interactive editing and viewing of rendered vega and vega-lite visualizations. https://github.com/vega/vega-editor I have installed it according to the directions on the README.md. The npm link did not work in either vega…
WestCoastProjects
  • 58,982
  • 91
  • 316
  • 560
0
votes
1 answer

vega-lite: How to break legend into multiple columns

Consider the following contrived example: { "data": {"url": "data/cars.json"}, "mark": "point", "encoding": { "x": {"field": "Horsepower","type": "quantitative"}, "y": {"field": "Origin","type": "nominal"}, "color": {"field":…
foglerit
  • 7,792
  • 8
  • 44
  • 64
0
votes
1 answer

How to build a 3rd party package in ember v2.6?

Trying to integrate vega-lite npm package into a single component for ember 2.6 .Brocolli is giving following error: The Broccoli Plugin: [object Object] failed with: Error: Cannot find module 'vega-lite'…
-1
votes
1 answer

How to enable mouse click even on legend with repeat configuration

i am using repeat configuration and i could able to draw multiple series using this configuration. However when i try to set the params and try to bind with legend, it gives error duplicate signal. I am also using Spec configuration. Appreciate your…
-1
votes
1 answer

Is it possible to put a label inside every circle in a scatter plot in vega-lite?

Is there a way to put a label inside the circle of a bubble chart, I have the following chart developed in Vega-lite. I am uploading my script too, inside the circle I want to show to the value of “Label” inside the circle. I am using the following…
-1
votes
1 answer

Deneb Card containing Text + Bar Chart (Vega-Lite)

I'm trying to create a card using Deneb, the card should contain a Measure representing total revenue added as Text, and below it a bar chart that breaks the revenue by month. I have created the bar chart with no problem, but when I add the Text…
-1
votes
1 answer

How to show a color caption on the Vega Stacked Bar Chart?

I am using this chart: https://vega.github.io/vega/examples/stacked-bar-chart/ I want to show a color note for the chart below.  But I can't find a solution to apply this type of chart. Do you have any solution for this type of chart?
nhannt201
  • 31
  • 2
  • 5
1 2 3
81
82