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
I may have stumbled across an inconsistency in the api for the bar chart trace. I have gotten used to be able to pass pandas series to trace properties. However assigning the width of a bar chart does not work as expected if a pandas series is passed - the trace is not displayed. A simple example to reproduce the behavior in a Jupyter Notebook is provided below.
Thanks for the report @roeap, I see what you mean.
Technical notes:
This probably means that plotly.js is not properly handling a typed array passed as the bar.width property, but we should confirm this in a codepen and open a plotly.js issue if so.
Hi Plotly Team,
I may have stumbled across an inconsistency in the api for the bar chart trace. I have gotten used to be able to pass pandas series to trace properties. However assigning the width of a bar chart does not work as expected if a pandas series is passed - the trace is not displayed. A simple example to reproduce the behavior in a Jupyter Notebook is provided below.
While the workaround is quite simple, it might be worth considering to make it work with pandas series as well.
Thanks for this great library!
The text was updated successfully, but these errors were encountered: