Skip to main content

All Questions

Tagged with
0 votes
2 answers
36 views

Remove gap between two graphs with shared axis

Objective I want to generate a 'double ended' barchart, showing gained points (of some metric) vis-a-vis missed points, something like this: Result so far I managed to do this import altair as alt ...
dkapitan's user avatar
  • 919
2 votes
1 answer
33 views

Altair not displaying data when changing option on dropdown selector

I want to display counts of a certain feature according to the year with an Altair Chart and I want to do it by selecting year as an option of a dropdown selector. It works fine with the 'None' option ...
LostSmoksby's user avatar
1 vote
1 answer
28 views

Altair chart empty by dropdown when other chart is displayed

I want to have two different charts, where in the first I can choose an artist in a legend and in the second chart I want to have a dropdown, that filters a year. In my database I have artists, sales ...
Dani's user avatar
  • 11
0 votes
0 answers
27 views

Linking Geospatial data to a bar chart

I am attemtping to link two graphs together, a geospatial graph of Philladelphia outlining its districts along with a bar chart that shows the amount of complaints against police per district. This is ...
lou415's user avatar
  • 1
2 votes
0 answers
24 views

Use value of alt.selection_point as sort field

I have the following facet chart where the order of the facet panels is determined by the column foo. I would like to add a drop-down box where I can select to dynamically update the sort order of the ...
centrecom716's user avatar
1 vote
1 answer
27 views

Altair Graph in Notebook

When I tried to draw the graph of USGS earthquakes using Altair, it always gives me blank graph. Here are my codes current_time = datetime.utcnow().strftime('%Y-%m-%dT%H:%M:%S') api_url = "https:...
Charlie's user avatar
  • 11
2 votes
1 answer
124 views

Building plots with plotnine and Python

I am looking for a way that I can modify plots by adding to an existing plot object. For example, I want to add annotations at particular dates in a work plot, but want a standard way of building the ...
Damien Martin's user avatar
2 votes
1 answer
140 views

Efficient interactive plots of large datasets -- which framework to use?

I have a moderate-to-large dataset of ~500k points which I would to visualize with an interactive 2d scatterplot (ideally through a web-app). Usually am quite fond of the altair package (Python) for ...
John Titor's user avatar
1 vote
1 answer
44 views

Consolidating multiple color legends in layered and faceted Altair plots

In Altair, if I layer two plots with color scales on different attributes and then also facet them I end up with multiple copies of the color legend. If there's just one color scale it correctly ...
kfor's user avatar
  • 358
1 vote
0 answers
39 views

chart objects not showing on the chart using selection containing fields with converted columns from datetime data

I am using Altair to create visualisations based on a local csv file about WW1 bombing incidents.nI tried to make 2 charts: one shows all incidents in the same month, one shows all incidents in the ...
Terry563's user avatar
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 ...
Mostafa Bouzari's user avatar
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....
Mostafa Bouzari's user avatar
1 vote
0 answers
27 views

Open urls from a mark_text() data table that was filtered based on chart selections

I'm trying to display a table of url values based on interactive selections. I am able to display it, following the example on the docs, but I want to be able to click on one of the urls in the table ...
oth_the_rocks's user avatar
0 votes
2 answers
79 views

How can we make this qubit heatmap in Vega spec

I want to create this type of hexagonal heatmap, but can't seem to find this anywhere. Heat map I tried to make it but no luck. here's my vega spec : { "$schema": "https://vega....
Farhan Azam's user avatar
1 vote
0 answers
36 views

How do you concatenate charts in Altair but have the charts in page position on the page?

I want to make a dashboard within Streamlit using the Altair library. The interactive feature of clicking on one graph and having that affecting another is really useful, however Altair is pretty ...
C.Banks's user avatar
  • 11

15 30 50 per page
1
2 3 4 5
15