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
{{ message }}
Repository navigation
inconsistency in (bar) chart api - width does not accept pandas series #1231
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.
Activity
jonmmease commentedon Oct 20, 2018
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.widthproperty, but we should confirm this in a codepen and open a plotly.js issue if so.bpostlethwaite commentedon Oct 23, 2018
@Kully can you port this bug report to a JS Codepen and open an issue in plotly.js (and link back here)?
Kully commentedon Oct 23, 2018
Here's the JS Issue. I was able to replicate:
plotly/plotly.js#3142
jonmmease commentedon Oct 30, 2018
Fixed in Plotly.js in plotly/plotly.js#3169 and released in Plotly.js 1.42.0. This will be included in plotly.py 3.4.0.
Here is the output of the original example on master:

Thanks for taking the time to report this @roeap!