Hi, I have issues with different area charts which I'm using to monitor the presence of different types of events.
My data in my area charts are going all over the place because values seem by default to be interpolated for the traces which have no data at one "location" (for a given month, in my case)


in this examples, each time there is no data, the curves should go back to zero
Instead, the area extends for each trace to the next point where there is some data.
I would like to insert a zero at locations at which other traces in this group have data but this one does not
from plotly/plotly.js#1217
and from https://plotly.com/python/reference/scatter/#scatter-line
I understood that I should use stackgaps="infer zero" to avoid have my data in my area chart going all over the place because values are by default interpolated for the traces which have no data at one "location" (for a given month, in my case)
I'm declaring my chart as a plotly express area chart.
It seems that under the hood, it a a scatter plot, and it links to the reference for scatter plots.
So I don't really undertand why my stackgaps parameter is not recognized, either in the fig = px.area definition or in the fig.update_traces(stackgaps="infer zero",)
Is that a bug? What am I doing wrong?
Hi, I have issues with different area charts which I'm using to monitor the presence of different types of events.
My data in my area charts are going all over the place because values seem by default to be interpolated for the traces which have no data at one "location" (for a given month, in my case)


in this examples, each time there is no data, the curves should go back to zero
Instead, the area extends for each trace to the next point where there is some data.
I would like to insert a zero at locations at which other traces in this group have data but this one does not
from plotly/plotly.js#1217
and from https://plotly.com/python/reference/scatter/#scatter-line
I understood that I should use
stackgaps="infer zero"to avoid have my data in my area chart going all over the place because values are by default interpolated for the traces which have no data at one "location" (for a given month, in my case)I'm declaring my chart as a plotly express area chart.
It seems that under the hood, it a a scatter plot, and it links to the reference for scatter plots.
So I don't really undertand why my
stackgapsparameter is not recognized, either in thefig = px.areadefinition or in thefig.update_traces(stackgaps="infer zero",)Is that a bug? What am I doing wrong?