Hi Chriddyp:
I now figure out that my problem is only about how to let the rangeslider not visible. Here is the example:
…
import pandas as pd
import datetime
import dash
import dash_core_components as dcc
import dash_html_components as html
app = dash.Dash()
date = pd.date_range(‘20180101’,periods=8)
s1 = pd.Series([1,2,3,4,5,6,7,8],index=date)
s2 = pd.Series([4,5,6,7,8,9,10,11],index=date)
gtype = ‘candlestick’
app.layout = html.Div(children=[
html.H1(children=‘Whoa, a graph!’),
html.Div(children=’’’
Making a stock graph!.
‘’’),
dcc.Graph(
id=‘example-graph’,
figure={
‘data’: [
#{‘x’: s1.index, ‘y’: s1.data , ‘type’: gtype, ‘name’: ‘stock-x’},
#{‘x’: s2.index, ‘y’: s2.data , ‘type’: gtype, ‘name’: ‘stock-y’},
{‘x’:s1.index, ‘open’:s1.data , ‘high’:s2.data ,‘low’:s1.data, ‘close’:s1.data,‘type’:gtype, ‘name’: ‘stock-y’},
],
‘layout’:{
‘title’:‘stock info’,
‘x-axis’:{‘rangeslider’:{‘visible’:False}},
‘y-axis’:{‘rangeslider’:{‘visible’:False}},
},
}
)
])
if name == ‘main’:
app.run_server(debug=True)