-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect fill rendering caused by gaps in data #2736
Comments
Confirmed, thanks @acarapetis - and the pared-down codepen is much appreciated! Seems to be a problem specifically with gaps in the lower trace. I'm probably going to need to muck with fills for #1217, perhaps I can fix this at the same time (along with the many other fill bugs) |
I encountered a similar problem and as @acarapetis mentioned adding |
Any update on this issue in the meantime?
The workaround above does somehow mitigate the problem. However, the gaps are also filled: |
I was wondering if there is an update regarding this bug. I am still facing this issue in |
I am also having this issue still, any update on this? |
Plotly doesn't correctly handle fills with gaps. This is an issue for confidence bands as they are being plotted currently. Work around is to tell Plotly to fill the gaps, which causes correct rendering. Unfortunately it does fill the gap, but this is the easiest work around for now. See plotly/plotly.js#2736 for context.
Plotly doesn't correctly handle fills with gaps. This is an issue for confidence bands as they are being plotted currently. Work around is to tell Plotly to fill the gaps, which causes correct rendering. Unfortunately it does fill the gap, but this is the easiest work around for now. See plotly/plotly.js#2736 for context.
We are also experiencing this issue. The fill options does not respect gaps, and will fill across them. Is anyone looking in on this? |
Same problem here using Using plotly-python on plotly==5.18.0 |
Is there any progress on this? |
I'm using Plotly.js to display some time series data with the following relevant properties:
I'm attempting to plot this by adapting this example, but I seem to have come across a bug: when using data with gaps (and
connectgaps: false
) at the same time asfill: 'tonexty'
, the gaps cause the fill to be drawn incorrectly:(The section of data at the very end of the graph is rendered correctly, but everything before the last gap is messed up.) For a simple example that reproduces this issue, see this codepen.
Interestingly, adding
fill: 'tozeroy'
to the bottom trace seems to resolve the obviously broken aspect of this issue:I would still argue that the expected behaviour is that
connectgaps: false
should result in no fill crossing the gaps.The text was updated successfully, but these errors were encountered: