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
  I have homework that I've made no effort to show any code that I'm stuck on Ronaldinho 1 211 May-30-2019, 07:18 PM
Last Post: nilamo
  How to repeat input line of code until condition is met Reta 2 175 May-14-2019, 10:06 PM
Last Post: nilamo
  UNable to install plivoxml module deepakdeshp 1 266 Jan-21-2019, 07:41 PM
Last Post: Larz60+
  How do I make my plot show up? ThomasM4 0 335 Dec-09-2018, 05:28 AM
Last Post: ThomasM4
  Unable to implement loop count zukochew 3 544 Jul-25-2018, 06:23 PM
Last Post: ichabod801
  Unable to connect to MS Access sasanuru 1 1,023 Jun-20-2018, 01:59 PM
Last Post: Larz60+
  Unable to create csv file Sumaira 2 868 Feb-06-2018, 03:43 AM
Last Post: Sumaira
  Python UI - Getting Label to show to left of QLineEdit ijosefson 1 827 Nov-11-2017, 01:54 AM
Last Post: ijosefson
  bar chart and custom colormap metalray 1 2,929 Apr-17-2017, 08:45 PM
Last Post: zivoni
  matplotlib and line chart with shaded area metalray 10 11,172 Apr-11-2017, 08:54 AM
Last Post: metalray

Forum Jump:

Users browsing this thread: 1 Guest(s)