Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[BUG] All graphs are monotonically increasing `y = x`

未关闭
#3,417 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
javascript, python, react

调研方向

首先比较生产环境和开发环境的脚本列表,重点检查 dash-ag-grid 的版本以及 dpd-components 仅在生产环境中缺失的情况,然后在 Firefox 中复现图表渲染行为。确认图表组件接收的数值数据是否与正确渲染的图例相同;当生产环境中的图表显示所提供的数据,而不是单调递增的线条时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

Describe your context
Please provide us your environment, so we can easily reproduce the issue.

  • replace the result of pip list | grep dash below
dash                      2.9.3
dash-ag-grid              32.3.1
dash-bootstrap-components 1.7.1
dash-core-components      2.0.0
dash-html-components      2.0.0
dash-table                5.0.0
django-plotly-dash        2.5.0
  • if frontend related, tell us your Browser, Version and OS

    • MacOS 14.3
    • Firefox 142.0

Describe the bug

In production, all graphs are monotonically increasing linear graphs:

Image

These are the included scripts:

<script src="https://unpkg.com/@babel/polyfill@7.12.1/dist/polyfill.min.js"></script>
<script src="https://unpkg.com/react@16.14.0/umd/react.production.min.js"></script>
<script src="https://unpkg.com/react-dom@16.14.0/umd/react-dom.production.min.js"></script>
<script src="https://unpkg.com/prop-types@15.8.1/prop-types.min.js"></script>
<script src="https://unpkg.com/dash-ag-grid@32.3.1/dash_ag_grid/dash_ag_grid.min.js"></script>
<script src="https://unpkg.com/dash-renderer@1.15.1/build/dash_renderer.min.js"></script>
<script src="https://unpkg.com/dash-core-components@2.9.2/dash_core_components/dash_core_components.js"></script>
<script src="https://unpkg.com/dash-core-components@2.9.2/dash_core_components/dash_core_components-shared.js"></script>
<script src="https://unpkg.com/dash-html-components@2.0.11/dash_html_components/dash_html_components.min.js"></script>
<script src="https://unpkg.com/dash-table@5.2.4/dash_table/bundle.js"></script>

In development, the graphs display data correctly:

Image

The script included are these:

<script src="https://unpkg.com/@babel/polyfill@7.12.1/dist/polyfill.min.js"></script>
<script src="https://unpkg.com/react@16.14.0/umd/react.production.min.js"></script>
<script src="https://unpkg.com/react-dom@16.14.0/umd/react-dom.production.min.js"></script>
<script src="https://unpkg.com/prop-types@15.8.1/prop-types.min.js"></script>
<script src="https://unpkg.com/dash-ag-grid@31.3.0/dash_ag_grid/dash_ag_grid.min.js"></script>
<script src="https://unpkg.com/dpd-components@0.1.0/dpd_components/bundle.js"></script>
<script src="https://unpkg.com/dash-renderer@1.15.1/build/dash_renderer.min.js"></script>
<script src="https://unpkg.com/dash-core-components@2.9.2/dash_core_components/dash_core_components.js"></script>
<script src="https://unpkg.com/dash-core-components@2.9.2/dash_core_components/dash_core_components-shared.js"></script>
<script src="https://unpkg.com/dash-html-components@2.0.11/dash_html_components/dash_html_components.min.js"></script>
<script src="https://unpkg.com/dash-table@5.2.4/dash_table/bundle.js"></script>

Even in production, if I add legends that extract the numerical values from the data, those correctly display the values. The issue is only in graphs.

主要语言
Python
星标
24.4k
派生
2.3k
平均合并
1 天 19 小时
30 天内合并 PR
19

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

plotly/dash 的其他 Issue

查看 plotly/dash 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。