Line plot not showing

Help us help you! Writing your post to the following guidelines will help Bokeh Discourse reviewers understand your question, and increases the likelihood of a response.

Here, i am providing minimal reproducible code for an app which will needs to plot the stock value of list of stocks provided. Not certain why the plot is always blank.

import requests
import io
import pandas as pd

stock_list=['GOOG']

df_fnl=pd.DataFrame([])

for i in range(len(stock_list)):
    url_list='https://www.alphavantage.co/query?function=TIME_SERIES_DAILY&symbol={}&outputsize=compact&datatype=csv&apikey=xxxxxxxxx'.format(stock_list[i])
    r=requests.get(url=url_list)
    data=io.StringIO(r.text)
    df=pd.read_csv(data)
    df['ticker']=stock_list[i]
    df_fnl=pd.concat([df_fnl,df])

from bokeh.plotting import figure,show

df_fnl.sort_values('timestamp',ascending=True,inplace=True)
p=figure(x_axis_type='datetime')

p.line(x=df_fnl['timestamp'],y=df_fnl['open'])

show(p)

Your timestamp column contains strings:

In [7]: df_fnl['timestamp'][0]
Out[7]: '2024-11-29'

You need to convert them to actual datetime values, e.g. with pd.to_datetime or similar.

Hi Bryan,
How stupid of me. Thanks.