[BUG] Client side error in plotly when trying to draw a heatmap with height set and just a few values.

Đang mở
#3,363 1 bình luận 1 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@T4rk1n đang làm issue này rồi.

Từ ngày 3/7/2025.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

bug P1 regression

I'm using dash 3.1.1 installed from python3.13.5 virtual env from ubuntu24.0.4.2LTS.

When I run this minimal example:

import dash
from dash import dcc, html
import plotly.express as px
import pandas as pd

df = pd.DataFrame({"x": ["Out Of Bounds Read or Write"] * 15, "y": [9.8] * 15})
fig = px.density_heatmap(df, x="x", y="y")

app = dash.Dash(__name__)
app.layout = html.Div(
    [
        dcc.Graph(
            figure=fig,
            style={"height": 100},
        )
    ]
)

if __name__ == "__main__":
    app.run(debug=True)

The web page stays blank instead of displaying the chart, and I can see the following error message on dev tools from my browser:

Uncaught (in promise) Error: Something went wrong with axis scaling
    setScale plotly.min.js:20
    lmt plotly.min.js:21
    omt plotly.min.js:21
    each plotly.min.js:15
    bt plotly.min.js:15
    each plotly.min.js:15
    omt plotly.min.js:21
    drawMarginPushers plotly.min.js:21
    b plotly.min.js:21
    syncOrAsync plotly.min.js:20
    nht plotly.min.js:21
    lht plotly.min.js:21
    _ht plotly.min.js:21
    plot React
plotly.min.js:20:174757

On the top of this plotly.min.js I have:

/**
* plotly.js v3.0.1
* Copyright 2012-2025, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
*/

When I comment the line style={"height": 100}, everything is working well.

Ngôn ngữ chính
Python
Star
24.5k
Fork
2.3k
Merge trung bình
3 ngày 7 giờ
Pull request đã merge (30 ngày)
30

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của plotly/dash

Tất cả issue của plotly/dash

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.