You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use configure_axisY to modify the y-axis title, but the it becomes empty.
importaltairasalt# load a sample dataset as a pandas DataFramefromvega_datasetsimportdatacars=data.cars()
# make the chartchart=alt.Chart(cars).mark_point().encode(
x='Horsepower',
y='Miles_per_Gallon',
color='Origin',
).interactive()
chart.configure_axisY(title="test")
altair version is '5.1.1'
The text was updated successfully, but these errors were encountered:
@Liripo, I have searched and I am not seeing it documented anywhere that title can be passed to configure_axisY, I may be missing where it says that.
Not sure if you are looking for a work-around or alternative way to achieve what you wrote, but this will get it done:
importaltairasalt# load a sample dataset as a pandas DataFramefromvega_datasetsimportdatacars=data.cars()
# make the chartchart=alt.Chart(cars).mark_point().encode(
x='Horsepower',
y=alt.Y('Miles_per_Gallon').title('Miles Per Gallon'),
color='Origin',
).interactive()
Use
configure_axisY
to modify the y-axis title, but the it becomes empty.altair
version is '5.1.1'The text was updated successfully, but these errors were encountered: