Hi
I am new to dash plotly,i am using bar chart,and tyied this,https://plotly.com/python/bar-charts/
if use add_trace,it will not show all data,only show 15 records data.
no use trace lot,will show all data,30 records data,
i want to know,how to set the color under 0
def get_total():
fig = go.Figure()
fig.add_trace(go.Bar(x=data_reverse['date'], y=data_reverse['total'],
marker_color='crimson',
name='expenses'))
# fig.add_trace(go.Bar(x=data_reverse['date'], y=data_reverse['total'],
# base=0,
# marker_color='lightslategrey',
# name='revenue'
# ))
return html.Div([
dcc.Graph(figure=fig)
])