Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bokeh
#1
Hi all,
I have a problem with plotting in Bokeh. Please see a screenshot of my dataset(it actually has 10 rows):

bokey-screenshot


These are the dtypes
Country_code object
Bank_name object
Tier_1_ratio float64
dtype: object


This is how I am trying to plot it
from bokeh.models import ColumnDataSource
from bokeh.palettes import Spectral6


source = ColumnDataSource(top_ten_start)

p = figure(x_range='Bank_name', plot_height=250, y_range=(0, 90), title="BAnks")
p.vbar(x='Bank_name', top='Tier_1_ratio', width=0.9, legend="test", source=source)

p.xgrid.grid_line_color = None
p.legend.orientation = "horizontal"
p.legend.location = "top_center"

show(p)
There is nothing showing up. Can you help me with this, please?
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020