Questions tagged [vega-lite-api]

23 questions
0
votes
1 answer

Vega-Lite v4 - Pivot example (and my code) throwing errors

So I am working with vega-lite-v4 (that's the version our businesses airtable extension uses) and the answer to my previous post was that I need to use the pivot transform But any time I try and use it as it is explained in the v4 documentation…
0
votes
1 answer

Vega Lite (v4) - What transform do I use for this?

I am trying to create a graph that displays the count of appearances of different keywords per month (to find out which keywords are in 'popular season'). Currently, I am attempting to display a single keyword as an area, with a dotted line of…
0
votes
1 answer

How do I re-position an axes for a re-positioned bar chart mark?

I need to create a visualization that contains multiple marks, namely 2 bar charts side by side. I need them to be in the same vega spec, not 2 separate vega specs. After much research and a decent amount of trial and error, I discovered you can…
irwazr
  • 77
  • 1
  • 9
0
votes
1 answer

Cumulative Density plot in vega-lite

I created cumulative density visualization using this example of vega-lite as shown below: var data = [{"student_name": "student 0", "e": "100.15", "d": "127.81"}, {"student_name": "student 1", "e": "100.30", "d": "189.94"}, {"student_name":…
Mahesha999
  • 22,693
  • 29
  • 116
  • 189
0
votes
1 answer

How to annotate mark rules in vega lite api with parallel text or legend?

I have made following visualization: data = [{"student_name": "student 0", "e": "100.15", "d": "127.81"}, {"student_name": "student 1", "e": "100.30", "d": "189.94"}, {"student_name": "student 2", "e": "100.15", "d": "105.33"}, {"student_name":…
Mahesha999
  • 22,693
  • 29
  • 116
  • 189
0
votes
2 answers

Changing vega lite markLine to markBar makes it loose sort order

I have made following visualization: data = [{"student_name": "student 0", "e": "100.15", "d": "127.81"}, {"student_name": "student 1", "e": "100.30", "d": "189.94"}, {"student_name": "student 2", "e": "100.15", "d": "105.33"}, {"student_name":…
Mahesha999
  • 22,693
  • 29
  • 116
  • 189
0
votes
1 answer

Vega lite api miss-behaving

I prepared this vegalite visualization: data = [{"student_name": "student 0", "e": "100.15", "d": "127.81"}, {"student_name": "student 1", "e": "100.30", "d": "189.94"}, {"student_name": "student 2", "e": "100.15", "d": "105.33"}, {"student_name":…
Mahesha999
  • 22,693
  • 29
  • 116
  • 189
-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