All Questions
26
questions
0
votes
1
answer
33
views
Reorder a stacked barplot in altair
So I am making an interactive plot (which is why I'm using altair) and I want to reorder the stacks within each bar to match the legend. I've tried reodering the df, I've tried using the 'sort' ...
1
vote
0
answers
26
views
How to add two side slide button to a line chart based on the year using Altair
i have a line chart that has date as X axis. i want to filter this with a double (two) sided slide button for filtering proposes. So i want to be able to filter the data from starting and end date of ...
1
vote
0
answers
29
views
How to move Altair dropdown to under the legend dynamically (for every screen size)
it's been a while that i have done CSS coding so i need help. i want to move the drop down list from under the chart to under the legend. Dataframe:
data = {
'Adj Close': [1.308934, 2.169581, 2....
1
vote
1
answer
57
views
Undefined colors in Altair plot
I have been making a program in Python with the help of the libraries Altair and Streamlit in order to visualize data on a real time updating dashboard locally. I'll be the first to admit that these ...
1
vote
0
answers
48
views
Separate axis labels on two axis in altair
I am trying to use this code as an example to separate the axis labels for the y axis on the left and on the right side together.
import altair as alt
import pandas as pd
df = pd.DataFrame(
{
...
0
votes
0
answers
96
views
Interactive US Map with Altair: Linking States Upon Click
I am currently facing a challenge in data visualization, specifically in creating an interactive map using Python's Altair library. My project involves a map of the United States, where I want to ...
1
vote
1
answer
41
views
Make only one value to be a unique shape in Altair point graph?
I'm using Altair to make a point graph where all the shapes are the same (circle) for each stock value except for one (let's say diamond).
In this dataset I want the stock symbol for "V" to ...
0
votes
1
answer
85
views
specified without a type
I tried to filter some datas from a csv file. It worked fine. Now i wanted to do some graphs with altair. I imported it already.
Forest=pd.read_csv("AnnualChangeForest.csv", sep=',')
Forest
...
0
votes
1
answer
44
views
Altair: only show related field on hover, not all of them
This is a follow-up question to a previous (solved) question about Altair with the same toy dataset.
In the code below, we have a dataset that can be read as: "two cooks cook1, cook2 are doing a ...
0
votes
1
answer
35
views
KeyError: 'return' on Shapelets platform
I was trying to create a function on the Shapelets platform by combining the radio group and the Altair function. The goal is to be able to display the graph depending on the selection made. I ...
1
vote
1
answer
169
views
How can I display and manipulate durations in Altair charts using Pandas data?
Does anyone know how can I work with time (as duration - not hours of a day) in altair charts?
I have a Pandas dataset which each line represents a flight. There are two columns, the first one with a ...
0
votes
1
answer
12
views
No Chart on Shapelets-platform dataapps with Altair charts
I was trying to create a simple data app for an interactive work presentation. So my code is running smoothly, however, when I go on the data app the whole page is blank and I don't know what is ...
-1
votes
1
answer
85
views
TypeError: Widget.__init__() got an unexpected keyword argument 'spec' Altair / Shapelets-platform
I tried to work with Shapelets, I was trying the altair example but I got an issue with an argent:from shapelets.apps import DataApp it says that spec doens't exist, TypeError: Widget.init() got an ...
1
vote
0
answers
395
views
Scatter Plot of Large Datasets in Altair
I am attempting to use altair to illustrate correlation between historical RSI and 1-week returns for a fairly large dataset (~38k rows). I have already disabled max rows and am attempting to use ...
2
votes
1
answer
129
views
Interactive bar plot with multiple dataframe column selection
TLDR: I want to create an interactive bar graph in Python where I can select which bars appear on the plot by toggling values from multiple categorical dataframe columns.
The data
I have a dataframe ...