Skip to content Skip to sidebar Skip to footer
Showing posts with the label Altair

How Can I Make A Map Using Geojson Data In Altair?

I'm very new to mapping, and to Altair/Vega. There's an example in the Altair documentation… Read more How Can I Make A Map Using Geojson Data In Altair?

Dynamic Name In Altair Alt.condition

I am following this example to create a bar chart with conditional color formatting on negative val… Read more Dynamic Name In Altair Alt.condition

How Do You Set Axis Fontsize In Altair?

I would like to increase the X-Axis (or Y-Axis for that matter) fontSize to 16 (or any value) in th… Read more How Do You Set Axis Fontsize In Altair?

Altair Limit Number Of Bars In Facet Chart

Suppose that I have a pandas dataframe like this one: label counts group 4 4 8 … Read more Altair Limit Number Of Bars In Facet Chart

Options For Improving Interactive Altair Line Charts With Many Rows

My requirement is to plot a pandas dataframe with a shape of (50,000, 2) as an interactive line cha… Read more Options For Improving Interactive Altair Line Charts With Many Rows

Stacked Text In A Stacked Bar Chart Using Altair Mark_text

I'm trying to use mark_text to create a stacked text in a stacked bar chart. I would like to la… Read more Stacked Text In A Stacked Bar Chart Using Altair Mark_text

World Map + Slider In Altair (python)

I would like to build an interactive chart with world map with COVID-19 confirmed cases per country… Read more World Map + Slider In Altair (python)

Altair Limit Number Of Bars

Suppose that I have a dataframe like this one label counts 4 4 8 5 5 7 6 … Read more Altair Limit Number Of Bars

Altair: Layered Line Chart With Legend And Custom Colors

I'm creating a layered line chart with 2 lines in Altair, each with a custom color. I want to a… Read more Altair: Layered Line Chart With Legend And Custom Colors

Recreating The Pyldavis Chart In Altair - Filtered Data With Empty Selection

I am trying to recreating the classic pyLDAvis visualization for topic modelling in Altair. I'v… Read more Recreating The Pyldavis Chart In Altair - Filtered Data With Empty Selection

Sorting A Chart Axis Based On The Dynamically Updated Axis Order In Another Chart

In this VegaLite spec the y-axis order of the bottom-most barplot is updated as the data of that pl… Read more Sorting A Chart Axis Based On The Dynamically Updated Axis Order In Another Chart

Altair Remove Border In LayerChart

I am trying to remove the border from an altair chart. This answer works perfectly but it fails whe… Read more Altair Remove Border In LayerChart

How To Reproduce The Unsub Histogram In Altair?

Unsub's histogram display stacks each journal title on top of each other as an individual box, … Read more How To Reproduce The Unsub Histogram In Altair?