import hvplot.xarray # noqa
import xarray as xr
A bar
plot represents categorical data with rectangular bars with heights proportional to the numerical values that they represent.
The x-axis represents the categories and the y axis represents the numerical value scale.
The bars are of equal width which allows for instant comparison of data.
Let's load some data.
ds = xr.tutorial.open_dataset('air_temperature').load()
air = ds.air
air1d = air.sel(lon=285.,lat=40.).groupby('time.month').mean()
air1d
air1d.hvplot.bar(y='air', height=500, title="Air Temperature by Month")