You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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()
To Reproduce
Sample script given on Prewald's website produces the same problem:
Expected Behavior
Histogram x-axis and y-axis labels showing in their respective sides.
Screenshots
1. Screenshot x and y-axis labels not showing:
2. Screenshot and code where x-axis & y-axis show
Instead of running plotly(fig), I ran fig.show().
Environment:
MacOS
Chrome
Version 134.0.6998.118
The text was updated successfully, but these errors were encountered:
Hey! I tried solving this problem by adding label handling to plotly function in components.py but I think the issue is in the frontend part. I "preswald run" by setting the level to DEBUG and it clearly shows that the function is being called correctly but does not display in the application. I saw this error in the console:
Uncaught TypeError: Cannot read properties of undefined (reading 'Plots')
at index-Cx_a7Az3.js:4284:336549
at x (index-Cx_a7Az3.js:4284:335364)
Checked the frontend code and ensured that plotly.js is being imported and attached to the global window object in main.jsx.
I'm guessing the issue might be related to how the frontend integrates plotly.js or react-plotly.js. Could this be a version mismatch or a problem with how plotly.js is bundled in the frontend? Any guidance or suggestions would be greatly appreciated!
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()

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

Expected Behavior
Histogram x-axis and y-axis labels showing in their respective sides.
Screenshots
1. Screenshot x and y-axis labels not showing:

2. Screenshot and code where x-axis & y-axis show

Instead of running plotly(fig), I ran fig.show().
Environment:
The text was updated successfully, but these errors were encountered: