Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

Bar Chart is not displayed correctly

$
0
0

@Maeaex1 wrote:

My bar chart in Dash does not display the whole bar but just a line marking the highest value of the corresponding bar.

Find below my code.
The dataframe is normally set up, meaning for each X there is one Y

def update_graph3(start_date, end_date, selection):
    global df_r

    lag = 6

    df_r_filter = RC.create_timeseries(df_r, start_date, end_date, selection)

    df_weights = RC.create_portfolio_weights(df_r_filter, lag)
    mcr_rp, _, _ = RC.create_mcr(df_r_filter, 1_000_000, df_weights)

    fig = go.Figure(go.Box(
        x = mcr_rp.index,
        y = mcr_rp['Daily_d_VaR']))

    return fig

Thanks for your help!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6271

Latest Images

Trending Articles



Latest Images