Skip to content

Hover window gets cropped on top #3967

@q-wertz

Description

@q-wertz

Not sure if that belongs here or in plotly.js

Summary

When creating a plot with lots of traces and enabling the hover information it gets cropped (at the top).

image

Reproducible Code Example

import plotly.express as px
import numpy as np

x = np.linspace(0.0, 19.0, 20)
y = []
for i in range(10):
    y.append(np.ones(shape=(20))*i)

fig = px.line(x=x, 
              y=y,
              height=300)
fig.update_layout(hovermode="x unified")

fig.show()

Steps To Reproduce

  1. Run python test.py
  2. Hover in the plotly graph

Expected Behavior

The hover window is an overlay and not cropped.

Moved here from: streamlit/streamlit#5764

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions