Skip to main content

All Questions

Tagged with
1 vote
0 answers
26 views

Mark_text Altair doesn't working with multiple data at same month

I'm writing a code in python with altair and streamlit. I wrote all the code and have almost everything working, but im having a issue with multiple data sum() mark_text on same month. Example: DT ...
Renan Ceolim Ramos's user avatar
1 vote
1 answer
22 views

Altair Chart selected data to graph

I have a dataframe with multiple type-value pairs. Lets say it is: dt = pd.DataFrame({'date': ['2022', '2023', '2024'], type':['t1', 't2', 't3'], 'value': [1, 2, 3]}) of cause, with much more data ...
OcMaRUS's user avatar
  • 426
1 vote
0 answers
25 views

How modify altair multiple tooltip by y values

I'm looking to customize the tooltips in my Altair chart. I have two specific requirements: Order the tooltip lines based on the value of the element, and hide certain tooltip lines depending on their ...
Saint-malo's user avatar
0 votes
0 answers
215 views

Altair Jupyterchart error 'Failed to load model class 'AnyModel' from module 'anywidget'

Trying to use the latest Jupyterchart feature from altair library. But getting error as below. Altair Jupyterchart error ->'Failed to load model class 'AnyModel' from module 'anywidget'. Error: No ...
INIYAN S E's user avatar
0 votes
0 answers
178 views

Making an interactive chart in Altair with change on click

I am trying to create an interactive chart in Altair in Jupyter lab. This is my dataframe data = { 'Group_1': ["A", "A", "A", "B", "B", "B&...
Green Finance's user avatar
0 votes
0 answers
63 views

Is there a way to make multi-colored titles in Altair?

I'm trying to make a multi-colored Altair chart title. I have a grouped bar chart with two columns (e.g. A and B) in different colors (e.g. red and blue), and I wanted the title to be something like &...
Maisa Fraiz's user avatar
1 vote
0 answers
62 views

How to solve altair problems in python

I want to make a chart with 2 values using altair, but the chart result did not meet my expectation. I want to make a chart with 2 different colors and a legend for describing each value. I tried this ...
yasyfa's user avatar
  • 11
0 votes
1 answer
285 views

Altair multiple graphs from single data frame

My data frame looks like testname| owner| seed| duration| status| module| date | t1 | ram | 101 | NA | PASS | M_1 | 03_01_2023_15_42 | t2 | ram | 101 | NA | PASS |...
Kotesh Malempati's user avatar
1 vote
1 answer
205 views

Altair make axis lines thicker

I have an altair chart that looks like below. I would like to make the axis lines thicker as I (read: the reviewer of my paper) feel the current lines are too thin and are not easily visible on the ...
P JMU's user avatar
  • 69
1 vote
1 answer
85 views

Remove blank lines in Gantt chart when using Facets in altair

The following code: import altair as alt import pandas as pd source = pd.DataFrame([ {"task": 1, "start": 1, "end": 3, "group": 1}, {"task": ...
Pavlo's user avatar
  • 47
0 votes
1 answer
552 views

Altair: change point symbol

I use the code below to create this faceted chart: https://vega.github.io/editor/#/gist/a9f238f389418c106b7aacaa10561281/spec.json I would like to use another symbol (a dash in example) instead of the ...
aborruso's user avatar
  • 5,485
0 votes
1 answer
259 views

altair bar chart for grouped data sorting NOT working

`Reservation_branch_code | ON_ACCOUNT | Rcount :-------------------------------------------------: 0 1101 | 170 | 5484 1 1103 | 101 | 5111 ...
user1465454's user avatar
1 vote
1 answer
86 views

Display text on bubble maps and dynamic re-scale for y-axis

I am currently trying to use Altair package in Python to plot charts, and I have two questions that I am unable to figure out: Is there an easy way to display a text on each circle in the below map ...
user177196's user avatar
0 votes
1 answer
555 views

Altair - how to add lines inside chart

I am trying to add specific lines to a line graph in Altair, going from text to a certain point on the graph. I have added my current output here: I am trying to end up with a chart like the one ...
FutureDataScientist's user avatar
2 votes
1 answer
422 views

Centering the axis title between two concatenated Altair plots

I have an Altair plot that is a vertical concatenation of subplots. However, they share the y-axis title, and I would like to place this in the middle of the two plots. For example, let's say I have ...
Migwell's user avatar
  • 19.7k

15 30 50 per page