Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[BUG] DCC graph rendering of 'relative' bar inconsistent

オープン
#3,405 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
plotly, python

調査の方向性

報告されたバージョンで dcc.Graph を使って問題を再現することから始め、同じ相対的な棒グラフについて fig.show() と比較してください。次に、dcc.Graph が figure をどのように受け取り、レンダリングするかを追跡し、figure の barmode を変更せずに、ブラウザー上ですべての棒が一貫して相対位置指定を使用していることを確認してください。

索引モデルが issue の本文から書いたものです。

説明

bug P2

Describe your context
fig.show() has consistent relative bar positions. dcc.Graph (on the same data) mixes relative and overlaid within the same graph

dash                      3.2.0
dash-bootstrap-components 2.0.3
dash-bootstrap-templates  2.1.0
dash-core-components      2.0.0
dash_daq                  0.6.0
dash-html-components      2.0.0
dash-table                5.0.0

Describe the bug
Dataframe driven dataset, many columns, some negative and some positive. Set with relative barmode.

fig.update_layout(barmode='relative', bargap=0, showlegend=False,)

When calling from fig.show(), the results are properly relative

fig = netchart()
fig.show()

When calling from a dash webpage, with dcc.graph on the same data, the resulting figure is partially stacked and partially displayed as overlaid data

from . import dashboard_charts
dcc.Graph(figure=dashboard_charts.netchart(), id="ret-netchart")

Expected behavior

Both should correctly display relative data, dcc.Graph should not render two different barmodes within the same dataset when only one was specified.

Screenshots
fig.show()
Image

dcc.Graph
Image

主要言語
Python
スター
24.4k
フォーク
2.3k
平均マージ
1日 21時間
マージ済み PR(30日)
19

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

plotly/dash のほかの issue

plotly/dash の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。