ZOrder parameter Breaks Plotly!
Ninguém assumiu esta issue ainda.
- Linguagem predominante
- Python
- Estrelas
- 18.8k
- Forks
- 2.8k
- Merge médio
- 16h 26min
- PRs com merge (30d)
- 21
Descrição
Hi, if I set zorder=2 or zorder=3 parameter in Candles, Scatter then the Plotly application will be broken!
It happens with Dash and Panel. So I think the problem is woth Plotly itself.
It happens when I regenerate a figure but sometimes it happens when I open an application first time.
I've recorded a video as it's hard to explain.
https://drive.google.com/file/d/1CiBZgWk60Q--nRdtFyQcyXDZFpfjRgv5/view?usp=drive_link
Some code:
fig: go.Figure = make_subplots(rows=6, cols=1,
shared_xaxes=True,
vertical_spacing=v_subplot_space, # Reduce space between plots
row_heights=row_heights) # Allocate space (Price gets most)
v_subplot_space = 0.001 # vertical_spacing
row_heights=[1.0, 0.1, 0.1, 0.1, 0.1, 0.1]
fig: go.Figure = make_subplots(rows=6, cols=1,
shared_xaxes=True,
vertical_spacing=0.005, # Reduce space between plots
row_heights=row_heights) # Allocate space (Price gets most)
# Bollinger Bands
fig.add_trace(go.Scatter(
hovertext=candles_df[CandlesTypes.DAY_NAME],
x=candles_df[CandlesTypes.DATETIME], y=candles_df[CandlesTypes.BB_UPPER],
name="BB Upper",
line=dict(color='rgba(150, 150, 150, 0.5)', width=1,), # Light grey
zorder=1,
hoverinfo="skip",
), row=1, col=1)
fig.update_yaxes(
row=1, col=1,
)
fig.update_xaxes(
dtick="D1", # Set grid interval to 1 day
matches='x',
)
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Direção de pesquisa
Comece reduzindo o exemplo fornecido de make_subplots e Scatter/Candles a um caso reproduzível, comparando o comportamento com e sem zorder no Dash e no Panel. Verifique tanto o carregamento inicial quanto a regeneração da figura; estará concluído quando zorder não quebrar mais nenhum dos dois aplicativos.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- plotly, python
- Domínio
- data-visualization
- Tipo de issue
- Bug
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 42/100