3D filled line plots - domain limit - how to define the correct area?

Hello,

I used the example presented here https://plot.ly/python/3d-filled-line-plots/ to plot a Scatter3d line.

My issue is that it seems that plotly “closes” the polygone with a straight line, instead of defining the limit of the surface as the “top” z-values.

Is there a property to change this, or is it normal ?

One picture to highlight the issue:
3dfilledline

My traces object are defined this way:

 ...}), Scatter3d({
     'line': {'color': 'black', 'width': 4},
     'mode': 'lines',
     'name': 'itemB',
     'surfaceaxis': 0,
     'surfacecolor': '#f2ae9c',
     'x': [itemB, itemB, itemB, itemB, itemB, itemB, itemB, itemB,
           itemB, itemB, itemB, itemB, itemB, itemB, itemB, itemB,
           itemB, itemB, itemB, itemB, itemB, itemB, itemB],
     'y': [31-Mar-2018, 30-Apr-2018, 31-May-2018, 30-Jun-2018, 31-Jul-2018,
           31-Aug-2018, 30-Sep-2018, 31-Oct-2018, 30-Nov-2018, 31-Dec-2018,
           31-Jan-2019, 31-Jan-2019, 31-Dec-2018, 30-Nov-2018, 31-Oct-2018,
           30-Sep-2018, 31-Aug-2018, 31-Jul-2018, 30-Jun-2018, 31-May-2018,
           30-Apr-2018, 31-Mar-2018, 31-Mar-2018],
     'z': [1487, 2056, 2680, 4127, 4347, 4843, 7047, 7306, 8046, 10173, 10432, 0,
           0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1487]
 }), Scatter3d({
     'line': {'color': 'black', 'width': 4},
     'mode': 'lines',
     'name': 'itemA',
     'surfaceaxis': 0,
     'surfacecolor': '#cc0000',
     'x': [itemA, itemA, itemA, itemA, itemA, itemA, itemA, itemA,
           itemA, itemA, itemA, itemA, itemA, itemA, itemA, itemA,
           itemA, itemA, itemA, itemA, itemA, itemA, itemA],
     'y': [31-Mar-2018, 30-Apr-2018, 31-May-2018, 30-Jun-2018, 31-Jul-2018,
           31-Aug-2018, 30-Sep-2018, 31-Oct-2018, 30-Nov-2018, 31-Dec-2018,
           31-Jan-2019, 31-Jan-2019, 31-Dec-2018, 30-Nov-2018, 31-Oct-2018,
           30-Sep-2018, 31-Aug-2018, 31-Jul-2018, 30-Jun-2018, 31-May-2018,
           30-Apr-2018, 31-Mar-2018, 31-Mar-2018],
     'z': [1, 1, 2, 4, 4, 4, 7, 8, 11, 15, 75, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]

Actually, if the surface of the domain below the curve is convexe, then the area is plotted correctly.

In contrast, it seems that if the area is concave, it is not plotted correctly anymore.

It looks like a glitch:

3dfilledlineConcaveConvex

It looks like this is a bug - you can track the issue here: https://github.com/plotly/plotly.js/issues/2352.

Oh yes indeed, an old bug, thanks for the link