vega-lite Questions
3
Solved
If I use the vega dataset "disasters" and make a straightforward chart, I get some weird values for year.
In Altair the code is:
import altair as alt
from vega_datasets import data
dis=data.disa...
2
Solved
Recently I am learning both Plotly express and Altair/Vega-Lite for interactive plotting. Both of them are quite impressive and I am wondering what their strengths and weaknesses are. Especially fo...
1
I'm trying to reproduce this chart using Altair as much as I can.
https://fivethirtyeight.com/wp-content/uploads/2014/04/hickey-bechdel-11.png?w=575
I'm stuck at getting the black line dividing pa...
2
Solved
I have a simple chart embedded in my website. Using the vega-lite spec v5. Here's an example:
The circle with three dots triggers a drop-down menu with some actions, including opening the chart in...
Fauve asked 3/9, 2020 at 1:45
1
Solved
I'd like to remove / hide the axis lines from the vega-lite chart below. I've tried changing the colour to null (as below) or other colours and that doesn't work.
https://vega.github.io/editor/#/gi...
Emolument asked 1/4, 2022 at 14:58
3
Solved
I can't find an example of a state/class/flow chart/org chart diagram with Vega. Are there any out there?
It feels like Vega is perfectly suited for this (if a bit overpowered), but without an exa...
Corn asked 27/2, 2020 at 0:12
1
Solved
What could be the reason that an import statement would cause an error (attached image) if the syntax is correct and the library has already been installed? Could it be something in the two main se...
Gladiate asked 11/8, 2021 at 6:16
1
I have installed vega & vega-lite & vega-embed using npm and now I am following the instructions here on how to embed a graph into my own page (not display it inside vs-code as the vega-emb...
Paletot asked 10/8, 2021 at 7:40
1
Solved
I have this bar chart that's made with Vega-lite (code and pic below).
But I want to customize the legend labels so that instead of videoGame it's Video Game and instead of tv its TV. Is there anyw...
Carbon asked 19/4, 2021 at 23:49
2
Solved
I'm loving Altair for creating choropleth maps! My biggest problem, however, is I cannot figure out how to change the size of the legend. I've read through the documentation and tried several thing...
Sturgis asked 31/3, 2019 at 17:23
1
Solved
For the example below I want to use green color scheme for exports and red for imports.
When I separately create the charts everything is good, they get the color scheme I assign them. However,
whe...
2
In Vega Lite, I am trying to align my legend to the middle of this chart. I need something like an anchor parameter for the legend, but I can only find titleAnchor.
Chart with Legend
"legend": {...
Cabana asked 17/6, 2020 at 2:5
1
Solved
I was trying to wrap the labels of x-axis on next line as the labels length is quite long. So is there any way to achieve it. I tried using calculate and labelExpr by breaking the label string and ...
1
Solved
I recently started tinkering with Vega-Lite templates to make a confusion matrix for an open-source data science software called DVC. You can see the template in my PR here, but I'll also repeat a ...
1
Solved
I have created a basic scatter plot to compare two variables using altair. I expect the variables to be strongly correlated and the points should end up on or close to the line of identity.
How ca...
1
Solved
I am attempting to understand how date parsing in Vegalite works. Specifically, I am a bit confused in my understanding of default timezone assumptions and date parsing from a non-timezone denoted ...
3
Solved
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...
Clerestory asked 9/2, 2016 at 23:50
2
Solved
I don't seem to be able to figure this out by reading the docs.
Is there a way to implement a onClick event handler for any of my marks?
Gwendagwendolen asked 29/8, 2019 at 9:47
1
Solved
I'm making time series charts with Vega-Lite and I want to set the min and max values of the x-axis independent of the values that are being displayed. The reason is that I'm displaying multiple ti...
Freeswimming asked 10/3, 2020 at 18:10
2
Solved
I'm trying to create in Altair a Vega-Lite specification of a plot of a time series whose time range spans a few days. Since in my case, it will be clear which day is which, I want to reduce noise ...
Solicit asked 22/2, 2020 at 10:20
1
Solved
Much to my chagrin, I've discovered that an Ionic 4 app that I've developed and tested successfully on my Android (8.0) phone, as well as on an iPhone, freezes on the splash screen on an Android (8...
Lissie asked 6/1, 2020 at 3:47
3
Solved
Can one make Altair plots fit the screen size, rather than have a pixel-defined width and height? I've read things about autosize "fit", but I am unsure about where to specify these.
1
Solved
I am using a clone of this VEGA-lite example and its chart spec as reference, and added the renderer option
{
"$schema": "https://vega.github.io/schema/vega-lite/v3.json",
"description": "A simp...
Desma asked 30/12, 2019 at 19:45
1
Solved
VegaLite assigns colors automatically. The Gold prices are Blue, and Silver prices are Orange, which feels wrong.
How can I assign explicit colours - #F1C40F for Gold and #95A5A6 for Silver?
I...
Bryonbryony asked 25/12, 2019 at 10:54
1
Solved
[![chart showing numbers without correct formatting][1]][1]
I need to format the label on these bars, so that they are rounded to nearest whole number. I have the following code:
def chart_tender...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.