Skip to content

[BUG] plotly histogram x-axis & y-axis labels not showing #656

Open
@francesbelleza

Description

@francesbelleza

Description of Bug

Histogram x-axis and y-axis labels are not showing on the dashboard using the function plotly(). I've checked the Plotly documents to double check my code, but my syntax is correct. When I run Plotly's function fig.show(), my specific graph's x and y-axis labels show. I looked at Preswald's interface/componenets.py in class def plotly(fig, size) and didn't see any code dedicated to label handling.

Screenshot of component.py , class plotly()
Image

To Reproduce

Sample script given on Prewald's website produces the same problem:
Image

Expected Behavior

Histogram x-axis and y-axis labels showing in their respective sides.

Screenshots

1. Screenshot x and y-axis labels not showing:
Image

2. Screenshot and code where x-axis & y-axis show
Instead of running plotly(fig), I ran fig.show().
Image

Environment:

  • MacOS
  • Chrome
  • Version 134.0.6998.118

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions