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

Scattergl Line not showing up

$
0
0

Hello, I am trying to add a simple line chart with scatter gl per this code:

            elif charttoggle == 'Candlestick':#IF IT IS A CANDLE CHART
                fig.add_trace(go.Candlestick(x=df['Date'],
                            open=df['Open'],
                            high=df['High'],
                            low=df['Low'],
                            close=df['Close'],showlegend=False))
                fig.add_trace(go.Candlestick(x=histf['Date'].values,
                            open=histf['Open'].values,
                            high=histf['High'].values,
                            low=histf['Low'].values,
                            close=histf['Close'].values,
                            increasing_line_color= '#0400ba', decreasing_line_color= '#0400ba',showlegend=False))    
                **fig.add_trace(go.Scattergl(y=df[metric].values,x=df['Date'].values,mode='lines+markers'),   row=2, col=1)**		

However the scattergl line chart does not show up.

Does anyone have any ideas here? Thank you very much.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 6271

Latest Images

Trending Articles



Latest Images