How to change tick label in pandas-bokeh plot?

502 Views Asked by At

I was trying to use pandas-bokeh library to make an interactive bar chart. Below is my dataframe that I want to plot.

My dataframe

After that,I plot it using this code

> df4.plot_bokeh(
>     kind='bar',
>     x='year', 
>     y=['Furniture','Office Supplies','Technology'],
>     yticks=np.arange(0,200000,10000)
>     )

interactive bar chart

As you can see, they yticks is using e+x. I want the yticks to be integers so the chart would be easier to be understood. Is there any way to do that in pandas-bokeh plot?

1

There are 1 best solutions below

2
On

You should read the documentation of the library there. In docs, your problem has been explained clearly. Also, you can use here. Both sources used like this

p.xaxis[0].formatter = NumeralTickFormatter(format="0.0%")
p.yaxis[0].formatter = NumeralTickFormatter(format="$0.00")