Hi
i am getting a question with the x data,it all form the same df data,but last date ont show,
any parameter can fix?
image :
a part of code as below:
data code:
def get_amplitude():
fig = go.Figure(data=[go.Scatter(
x=data_reverse['交易 日期'], y=data_reverse['漲跌 (%)'],
mode='markers',
)])
fig.update_layout(
title={
'text': "每日波動",
'y': 0.85,
'x': 0.5,
'xanchor': 'center',
'yanchor': 'top'},
font=dict(
color="RebeccaPurple"
)
)
return html.Div([
dcc.Graph(figure=fig)
])
a part of layout code:
dbc.Row(
[
dbc.Col(get_taiex(), md=6),
dbc.Col(get_amplitude(), md=6),
],
),