'Include max date in index python graph

I'm trying to visualize a distribution graph in python, but the graph doesn't return the max date which is January 1st 2022, the graph stops at August 2021. I have checked that the max date is correct in the pandas dataframe, but it's missing on the graph. How can I set the index to datetime and include the max date?

#Plot

data.set_index("Datetime", inplace=True)

reactions = data.groupby(['Datetime']).count()
ax = reactions.Text.plot(figsize=(10,5),ls='-',c='coral')

ax.xaxis.grid(True)
ax.yaxis.grid(True)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source