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
-1
votes
1 answer

Why does using vertical orientation for my layered line plot not do anything?

If I change horizontal to vertical here, the axes don't switch: { "$schema": "https://vega.github.io/schema/vega-lite/v5.json", "layer": [{ "data": {"values": [ {"x": 0.5, "y": 0}, {"x": 1, "y": 1}, {"x": 2, "y":…
user2373145
  • 332
  • 2
  • 14
-1
votes
1 answer

Highest Value Wrong Colour

Just made a simple bar chart, but for some reason, the final value is the wrong colour? Code: { "$schema": "https://vega.github.io/schema/vega-lite/v5.json", "width": 800, "height": 600, "title": "Death Rates Amongst Ages", …
-1
votes
1 answer

altair selection in multiple charts

I have a data frame with columns: 'sex', 'urb', 'age', 'time', 'value'. I need to select one element from 'sex' and 'urb' and multiple from 'age' column, then make an interactive line chart with 'time' on x axis, 'value' on y and age in the…
quazxsw
  • 1
  • 1
-2
votes
1 answer

Vega-Lite, issue with line color specification

My example. My goal is to have the 'handgrenade' line be a solid red which continues as the 'projected handgrenade' dashed line, also red. I threw the 'knights' in there as a blue line (which apparently works).
1 2 3
81
82