【发布时间】:2021-03-21 05:52:03
【问题描述】:
如何在条形图的条形中间居中刻度线?
title = 'Submissions from Aug 2018 to Feb 2020 by Month'
chart = alt.Chart(df_US).mark_bar(size = 25,
color = 'black').encode(
x=alt.X('yearmonth(Time_Received):T',
axis =alt.Axis(format = "%b%y",
tickCount = 20,
tickBand = 'center')),
y='count(Time_Received)'
).configure_axisX( tickBand = 'center'
).properties(
width = 900,
title = title
).configure_axis(
grid=False
)
【问题讨论】: