Bar chart color under 0

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)
    ])

Hi @yan

You need to divide your data in two series (positives and negatives) and use two different trace.

See the section: Customizing Individual Bar Base from your link.

Thank you very much.