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 }}
This repository was archived by the owner on Aug 27, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 27, 2026. It is now read-only.
(some PDF viewers) Orca using plotly.js > 1.49.5 creates thin lines for bars with 0 length #345
changed the title [-]Orca using plotly.js > 1.49.5 creates thin lines for bars with 0 length[/-][+](some PDF viewers) Orca using plotly.js > 1.49.5 creates thin lines for bars with 0 length[/+]on Aug 20, 2020
Thanks @michaelbabyn for the clear description of the issue and the Codepen to reproduce the issue! Thanks @archmoj for the references!
The reason why plotly.js puts a bar with a width of 0 is to properly support transitions. We can't transition a bar from being non-existent to having a finite value. Anyway, that's the conclusion I reached when introducing plotly/plotly.js#4180.
It looks like a Chromium bug to me that rectangles with zero width would appear in its PDF output. Anyway, I think we could and should fix this in plotly.js since it will affect any Chromium user printing web pages and not just Orca users.
I tried to extract the ghost SVG element from a plotly.js figure and put it into a Codepen in order to reproduce the issue: https://codepen.io/antoinerg/full/MWyvQWx . I was hoping to see a thin line when printing to PDF but alas, the rendering there is OK. I'm not sure what makes Chromium to render thin lines when printing plotly.js figure to PDF 😕
0-length bars are visible in pdfs generated by Orca even though they aren't visible in the plotly.js graphs.
I can reproduce this issue using orca directly using this method with the below json figure.