Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Python code unable to show Bokeh line chart
Hi all,

Would appreciate your help on why my Bokeh line chart doesnt show the line graph.


# output to static HTML file
x = pull_hdbrpi.iloc[:,0]
y = pull_hdbrpi.iloc[:,1]

# create a new plot with a title and axis labels
p = figure(title="HDB Resale Price Index Linechart", x_axis_label='Quarter', y_axis_label='Index')

# add a line renderer with legend and line thickness
p.line(x, y, legend="Temp.", line_width=2)

# show the results

buran wrote Feb-05-2019, 11:20 AM:
For tags, please use square brackets - e.g. [ and ], not < and >
please post large enough code snippet that it can be run.
Hi Larz60+,

Thanks for your help, my friend managed to solve it as my data was not in int format thats why the line didnt show up.

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Write one line of Python erfanakbari1 2 113 Aug-18-2019, 02:53 PM
Last Post: erfanakbari1
  I have homework that I've made no effort to show any code that I'm stuck on Ronaldinho 1 264 May-30-2019, 07:18 PM
Last Post: nilamo
  How to repeat input line of code until condition is met Reta 2 216 May-14-2019, 10:06 PM
Last Post: nilamo
  UNable to install plivoxml module deepakdeshp 1 314 Jan-21-2019, 07:41 PM
Last Post: Larz60+
  How do I make my plot show up? ThomasM4 0 377 Dec-09-2018, 05:28 AM
Last Post: ThomasM4
  Unable to implement loop count zukochew 3 588 Jul-25-2018, 06:23 PM
Last Post: ichabod801
  Unable to connect to MS Access sasanuru 1 1,112 Jun-20-2018, 01:59 PM
Last Post: Larz60+
  Unable to create csv file Sumaira 2 925 Feb-06-2018, 03:43 AM
Last Post: Sumaira
  Python UI - Getting Label to show to left of QLineEdit ijosefson 1 863 Nov-11-2017, 01:54 AM
Last Post: ijosefson
  bar chart and custom colormap metalray 1 3,115 Apr-17-2017, 08:45 PM
Last Post: zivoni

Forum Jump:

Users browsing this thread: 1 Guest(s)