🚀 Gen 5 of the leading AI app deployment platform launches October 6. Click for the livestream.

How could I apply colorcale on 3d lines plot?

I found the following example:
image

Is there any way to fill the graphic areas with a color gradient?

Something like this:

image

Also on the above example, we have lots of repeated data (“South Africa”) inside y array, to determine that this would be its ‘curve’. We can see a piece of that code here:

"data": [{
            "line": {
                "color": "black",
                "width": 4
            },
            "mode": "lines",
            "name": "",
            "type": "scatter3d",
            "x": [
                1952,
                1957,
                1962,
                1967,
                1972,
                1977,
                1982,
                1987,
                1992,
                1997
            ],
            "y": [
                "South Africa",
                "South Africa",
                "South Africa",
                "South Africa",
                "South Africa",
                "South Africa",
                "South Africa",
                "South Africa",
                "South Africa",
                "South Africa"
            ],
            "z": [
                14264935.0,
                16151549.0,
                18356657.0,
                20997321.0,
                23935810.0,
                27129932.0,
                31140029.0,
                35933379.0,
                39964159.0,
                42835005.0
            ],
            "surfaceaxis": 1,
            "surfacecolor": "#66c2a5"
        }

Any help will be very welcome, my biggest need is the color scale issue.

Thank you very much in advance!